How does the PIR sensor work on the Camera Doorbell?

The digital viewer will automatically take a photo or record a video after detecting motion for 2-3 seconds.