const int potPin = 12; // Change this to the pin your potentiometer is connected to
void setup() {
Serial.begin(115200);
// analogReadResolution(10);
}
void loop() {
int potValue = analogRead(potPin);
Serial.print("Potentiometer Value: ");
Serial.println(potValue);
analogWrite(2, potValue);
delay(1000); // Adjust delay as needed
}