#include "Wire.h"
#include "LiquidCrystal_I2C.h"
LiquidCrystal_I2C LCD(0x27,16,2);
void setup()
{
LCD.init();
LCD.backlight();
Serial.begin(9600);
}
void loop()
{
int valeur = analogRead(A0);
float temperature_celcius = valeur * 100.0 / 1023.0;
LCD.setCursor(0, 0);
LCD.print("Temperature : ");
LCD.setCursor(0, 1);
LCD.print(temperature_celcius);
LCD.print(" d.C ");
delay(250);
}