Code for my Home Automation project