Étape 1 :
#include < LiquidCrystal.h >
Innovente lcd (12, 11, 5, 4, 3, 2) ;
#define LCD_CLEAR 0b00000001 / / 0 × 01
temp de flotteur ;
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) ;
}