Presence and motion detectors are electrical devices that use sensors to detect nearby motion. Such devices are often integrated as system components that automatically generate alerts when motion is detected in an area. These detectors are vital components of security and surveillance systems, automated lighting control, energy efficient systems, and other management systems. They can also enhance public and home safety by automatically triggering smart locks, smart doorbells, and other home and building automation systems.