void setup() {
Serial.begin(9600); // Start serial communication at 9600 baud rate
}
void loop() {
int potValue = analogRead(A0); // Read the potentiometer value
Serial.print(“Potentiometer Reading: “);
Serial.println(potValue); // Print the reading to the serial monitor
delay(500); // Wait for half a second for easier reading
}