//Activity 3:LED with potentiometer:Group HARRY POTTER
const int lors = 10;
const int potPin = A0;
void setup() {
pinMode(lors, OUTPUT);
}
void loop() {
int potValue = analogRead(potPin);
int brightness = map(potValue, 0, 1023, 0, 255);
analogWrite(lors, brightness);
delay(10);
}