A script for using a passive infrared motion detector to detect motion and a Pi Camera to record video for the purpose of security.
This script is based on the Parent Detector tutorial project.
Make sure the camera is connected and the picamera module is enabled. See this guide for getting set up. The motion detector should be connected on GPIO 4 (for Raspyberry Pi 3).
python -m venv venv
Create a virtual environment for this project in a folder called venv
. Use that to install all the dependencies and run the script