Paso 1:
#include < LiquidCrystal.h >
LiquidCrystal lcd (12, 11, 5, 4, 3, 2);
#define LCD_CLEAR 0b00000001 / / 0 × 01
temp de flotador;
int tempPin = 0;
void setup() {}
Serial.Begin(9600);
LCD.Begin (16, 2);
LCD.Print("");
}
void loop() {}
Temp = analogRead(tempPin);
Temp = temp * 0.48828125;
lcd.setCursor (0, 0);
LCD.Print(Temp);
LCD.Print ("C");
Delay(1000);
LCD.Clear();
Serial.println(Temp);
}