int analogPin = 7;
void setup() {
Serial.begin(9600); // put your setup code here, to run once:
}
void loop() {
float val = analogRead(7);
float voltage = val*5/1024;
Serial.print("val=");
Serial.print(val);
Serial.print("voltage=");
Serial.println(voltage); {
if val = 250,00;
voltage = 1,22;
else
}
delay(100);
}