#define LED_PIN 11
#define POTENTIOMETER_PIN A0
void setup() {
// put your setup code here, to run once:
pinMode(LED_PIN, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int potentiometervalue=analogRead(POTENTIOMETER_PIN);
int brightness=potentiometervalue/4;
analogWrite(LED_PIN,brightness);
}