const int potPin = A0; //pin A0 to read analog input
int value;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode (potPin, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
value = analogRead (potPin); //Read and save analog value from potentiometer
Serial.print(value);
Serial.println();
delay(200);
}