int adc;
float voltage ;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
adc = analogRead(A0);
voltage = (5.0/1023.0)*adc;
Serial.println(voltage);
}