Code for my home automation project.