// read the sensor: int analogValue = analogRead(A0); // map the result to a voltage range from 0 to 5 volts // using a floating point decimal variable (called a float): float voltage = map(analogValue, 0.0, 5.0); // print it out: Serial.println(voltage);