Check for active dhcpd leases for a list of mac addresses. If found try to ping the device. If no devices are found enable motion detection.