Let's put this file right in your home directory for simplicity. The wget command makes things easy as this can be run from an internet connected Raspberry Pi.
$ wget https://raw.githubusercontent.com/adafruit/Adafruit_Learning_System_Guides/master/Raspberry_Pi_Sensing_Movement/Raspberry_Pi_Sensing_Movement.py
To start with, place the magnet next to the switch and cover the PIR sensor with something.
Confirm that the Pi connected to the Cobbler (or Cobbler Plus) and run the script.
The following command will start the program:
$ sudo python3 ./Raspberry_Pi_Sensing_Movement.py
..and you should see some trace appear in the terminal, when you move the magnet, or take the cover off the PIR sensor.
A good exercise might be to place your kids in-front of the PIR sensor and see how long they can keep still!
Text editor powered by tinymce.