Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <thermistor.h>
  2.  
  3. int pinNTC = A2;
  4. float temperatura;
  5.  
  6. THERMISTOR thermistor(pinNTC, 10000, 3950, 10000);
  7.  
  8. void setup()
  9. {
  10. Serial.begin(9600);
  11. }
  12.  
  13. void loop()
  14. {
  15.  
  16. temperatura = thermistor.read();
  17. Serial.println(temperatura);
  18. delay(1000);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement