If motion detected by D-Link Motion Sensor , then turn on D-Link Smart Plug.