A motion detector is an electrical device that utilizes a sensor to detect nearby motion. Such a device is often integrated as a component of a lighting system.