// set pin numbers: int potPin = A0; // the number of the potentiometer pin // variables will change: int potValue = 0; // variable for reading the pot value void setup() { // initialize the Serial communication Serial.begin(9600); } void loop(){ // read the value of the pot: potValue = analogRead(potPin); Serial.println(potValue); }