For ESP32 deep sleep applications, connect HW416B OUT to a wake-up pin and use esp_sleep_enable_ext0_wakeup() .
If you are looking for a PIR sensor "better" than the standard bulky blue boards (like the HC-SR501), here is a review of what you are likely looking at. hw416b pir sensor datasheet better
Drop a comment below—I’ve probably reverse-engineered it too. For ESP32 deep sleep applications, connect HW416B OUT