Heating system interface for communication with Arduino and data graphing
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
328 B

  1. #define in1 A0
  2. float temp1, lectura1;
  3. void setup() {
  4. // put your setup code here, to run once:
  5. Serial.begin(9600);
  6. pinMode(in1, INPUT);
  7. }
  8. void loop() {
  9. // put your main code here, to run repeatedly:
  10. lectura1 = analogRead(in1);
  11. temp1 = (lectura1 * 5000 / 1023 / 10) - 40;
  12. Serial.print(temp1);
  13. delay(800);
  14. }