int potPin = 34; // Pin connected to the potentiometer
int ledPin1 = 2; // Pin connected to the first LED
void setup() {
//pinMode(ledPin1, OUTPUT); // Set LED1 as output
Serial.begin(9600); // Initialize serial communication for debugging
}
void loop() {
int potValue = analogRead(potPin); // Read potentiometer value (0-1023)
Serial.print("Potentiometer Value: ");
Serial.print(potValue);
delay(1000); // Small delay to make the readings stable
}