I use the same sensor for my email notification of motion detection (using Pico W). I needed to disable and re-enable pin interrupts to get clean detection with the 2s setting. You can test your wiring of the sensor with a LED on pin 4 (of the sensor)... no MCU needed, the sensor will work completely on its own with just the connections you listed.
https://github.com/charkster/motion_det ... i_email.py
https://github.com/charkster/motion_det ... i_email.py
Statistics: Posted by chipace — Sat Mar 16, 2024 3:26 am