RC2019 – IR-sensor assignment – 1

Explanation: The code reads the value of the IR-sensor connected to pin A5 and turns the LED connected to pin 2 on/off accordingly.