#define LED_PIN 13
#define POTENTIOMETER_PIN 5
void setup()
{
pinMode(LED_PIN, OUTPUT);
Serial.begin(115200);
}
void loop()
{
int potentiometerValue = analogRead(POTENTIOMETER_PIN);
int brightness = potentiometerValue / 4;
analogWrite(LED_PIN, brightness);
Serial.println(potentiometerValue);
}