const int InputPin = A0; 

float Voltage; 

void setup() {
  pinMode(InputPin, INPUT);
  Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly: 
  Voltage = analogRead(InputPin);
  Serial.print("The voltage reading from the potentiometer is ");
  Serial.println(Voltage*5.0/1023.0);
  delay(2000);
}