RC2019 – Sorter: The boxes – 2

Explanation: Read the state of the switch and prints it in the serial monitor.

 

Explanation: The switch code in combination with the rest.