Arduino code for home automation system that uses ultrasonic sensors to detect objects to switch off and switch on the lights automatically.