void setup() {}
Serial.Begin(9600) ;
pinMode (led, sortie) ;
}
void loop() {}
int sensorValue = analogRead(A0) ;
flotteur de tension = sensorValue * (5.0 / 1023.0) ;
Serial.Print (« Valore: ") ;
Serial.println(voltage) ;
retard (400) ;
Si (tension > 2.00) ; Serial.println ("del Spento") ;
Si (tension > 2.00) ; digitalWrite (led, faible) ;
Si (tension < 1,80) Serial.println ("Acceso a conduit") ;
Si digitalWrite (tension < 1,80) (led, HIGH) ;
}