int potPin = A0;
int potValue = 0;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
potValue = analogRead(potPin);
Serial.print("Potentiometer Value:");
Serial.println(potValue);
delay(500);
}