The code and schematics were made for an automated lights project.
Code areas used in the video: -1 = none, 0 = living room, 1 = toilet, 2 = entrance, 3 = bed.
To upload the code to your Arduino, download the folder above and open the code inside with Arduino IDE.