Using a PIR sensor, motion of persons or pets can be detected. The inexpensive HC-SR501 (and clones) is worth the price, but without modification a 5V signal is required. To make it work with ESP8266 / ESP32 3.3V would be much better.
With a slight modification 3.3V can be used as input voltage and the trigger works correctly.
Orange: 3.3V
Green: Data
Blue: Ground
Sources and more help:
https://techgurka.blogspot.com/2013/05/cheap-pyroelectric-infrared-pir-motion.html
https://randomnerdtutorials.com/modifying-cheap-pir-motion-sensor-to-work-at-3-3v/
Door Status Monitor using ESP32 with Telegram Notifications
https://lededitpro.com/door-status-monitor-using-esp32-with-telegram-notifications
How to Control Servo Motor with ESP32 and Arduino IDE
https://lededitpro.com/control-servo-motor-with-esp32-and-arduino-ide
ESP32 Troubleshooting: A Complete Guide
https://lededitpro.com/esp32-troubleshooting-a-complete-guide
Install ESP32 Board in Arduino IDE in less than 1 minute
https://lededitpro.com/install-esp32-board-in-arduino-ide
Спасибо за статью !