Code for the Home Automation with Arduino book