#include <LiquidCrystal.h>
LiquidCrystal lcd( 7, 6, 5, 4, 3, 2);
int Tension ;
const int Potentiometer = A0 ;
void setup () {
lcd.begin (16,1);
lcd.print ("U =");
}
void loop() {
int Valeur_P = analogRead (Potentiometer);
float Tension = Valeur_P * ( 5.0 / 1023.0 );
lcd. setCursor (4,0);
lcd.print(Tension, 3) ;
lcd. print(" V");
}