This all works because of the person sensor module by Useful Sensors. The little module has a camera and face detection built into it. It doesn’t draw much power at 150 milliwatts. It can sense ...
(Passive InfraRed sensor) A device used to detect motion by receiving infrared radiation. When a person walks past the sensor, it detects a rapid change of infrared energy and sends a signal.