RC2019 – Switch example – 1 Explanation: The code reads and prints the value of a switch connected to pin A5.