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 ...
The sensor can be pointed at an object, and the Arduino can sense the brightness of that one point. Since this camera compiles an image so slowly, it sometimes has a problem with varying brightness.