To control the brightness of an LED by turning the potentiometer using Arduino.

To control the brightness of an LED by turning the potentiometer using Arduino.

Build a circuit and write a program that allows the user to control the brightness of an LED by turning the potentiometer. When the user turns the potentiometer, the LED brightness should change as well.