RC2019 – LDR assignment – 1 Explanation: The code reads the value of the LDR based voltage divider connected to pin A5 and turns the LED connected to pin 5 on/off accordingly.