int potSensorPin = 5; // The potentiometer is connected to analog pin 5
int dlyTime = 500; // 1/4 of a second delay between readings
int potValue; // variable to store the value read from the potentiometer
void setup() // this function runs once when the sketch starts up
{
Serial.begin(9600); // setup serial communication
}
void loop() {
potValue = analogRead(potSensorPin);
Serial.println(potValue); // Send sensor value to serial monitor
delay(dlyTime); // Pause for dlyTime milliseconds
}