If motion detected by D-Link Motion Sensor , then turn off All lights.