const int LED_PIN = 2;       // Pin connected to the LED
const int POT_PIN = 13;      // Pin connected to the potentiometer


void setup() {
  Serial.begin(115200);
  pinMode(LED_PIN, OUTPUT);
  pinMode(POT_PIN, INPUT);
 
}

void loop() {
  int potentiometerValue = analogRead(POT_PIN);
  int brightness =map(potentiometerValue, 0, 1023, 0, 255)/4;
   Serial.println(brightness);
  analogWrite(LED_PIN, brightness);
  delay(1000);
}