RC2019 – Potentiometer assignment – 2 Explanation: The code reads the value of the potentiometer connected to pin A5 and gradually adjusts the light-level of the LED connected to pin 5.