#define POTENTIOMETER_PIN 35
#define LED_PIN 26
void setup() {
Serial.begin(9600);
pinMode(LED_PIN, OUTPUT);
}
void loop() {
int putValue = analogRead(POTENTIOMETER_PIN);
int brightness = map(putValue, 0, 4095, 0, 255);
analogWrite(LED_PIN, brightness);
}