Motion Based Automation- Using Wired Sensor (2)