Advertisement
cisco404

Kode sederhana pembaca suhu modul MAX6755

Dec 20th, 2023 (edited)
1,198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | Source Code | 0 0
  1. #include <MAX6675.h>
  2.  
  3. // -------------------------------------------
  4. // Kode sederhana pembaca suhu modul MAX6755
  5. // www.ardukode.blogspot.com
  6. // -------------------------------------------
  7.  
  8. MAX6675 sensor(A0, A1, A2);
  9.  
  10. void setup() {
  11.   Serial.begin(9600);
  12. }
  13.  
  14. void loop() {
  15.   float suhu = sensor.readTempC();
  16.   Serial.println(suhu);
  17.   delay(1000);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement