How to use the HC-SR501 PIR motion sensor with the ESP32 in the Arduino IDE. Step-by-step wiring, code, and motion detection project ideas!