RC2019 – Servo-motor assignment – 2

Explanation: The code reads the value of the switch connected to pin A5 and if it is pushed down, the servo-motor switches between opening and closing the windows accordingly.