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