RC2019 – IR-sensor assignment – 2

Explanation: The code reads the value of the potentiometer connected to pin A5 and turns the LED connected to pin 5 stepwise from off to on.