Comments on: Raspberry Pi: Detect Motion using a PIR Sensor with Python https://randomnerdtutorials.com/raspberry-pi-detect-motion-pir-python/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Mon, 09 Sep 2024 20:35:20 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Sara Santos https://randomnerdtutorials.com/raspberry-pi-detect-motion-pir-python/#comment-886792 Mon, 29 Jan 2024 10:16:55 +0000 https://randomnerdtutorials.com/?p=130655#comment-886792 In reply to Jeremy S.

Hi.
Thanks. Yes, the “install” was missing.

I haven’t tested this on a Raspberry Pi 5. I’ll take a look at that detail.
Regards,
Sara

]]>
By: Jeremy S https://randomnerdtutorials.com/raspberry-pi-detect-motion-pir-python/#comment-886281 Fri, 26 Jan 2024 13:24:01 +0000 https://randomnerdtutorials.com/?p=130655#comment-886281 First, I love your content and it’s incredible how detailed yet comprehensive you are. I identified two challenges using this guide:
1. python3 -m pip gpiozero should be python3 -m pip install gpiozero as it’s missing the action (install).
2. I’m using a Raspberry Pi 5 so maybe this is specific to the new model, but I was forced to run the script as sudo and I had to export an environment variable as well. export GPIOZERO_PIN_FACTORY=native
This is because it would cause an error (missing default pin factory) without it.

]]>