#define potenM A1
// Global variables
int pin1 = 11;
void setup() {
// put your setup code here, to run once:
pinMode(pin1, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int potentiometerValue = analogRead(potenM);
int brightness = potentiometerValue/4;
analogWrite(pin1, brightness);
}