void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud rate
}
void loop() {
int sensorValue = analogRead(A0); // Read the analog value from pin A0
Serial.print("Potentiometer Value: ");
Serial.println(sensorValue); // Print the value to Serial Monitor
delay(500); // Wait for half a second
}