Turn on a device when motion is detected