const int InputPin = A0;
float Voltage;
void setup() {
// put your setup code here, to run once:
pinMode(InputPin, INPUT);
Serial.begin(115200);
}
void loop() {
// read ADC for potentio
int value = analogRead(InputPin);
// convert to voltage
Voltage = (value/1023.0)*5;
//Serial.println(value);
Serial.println(Voltage);
delay(100);
}