PIR Motion Sensor

PIR Motion Sensor

June 24, 2025

DIY ESP32-Based Motion Sensor for Home Assistant Security Automations

Ever walked into a dark room and wished the lights would just know to turn on? Or wanted a simple way to alert you when someone’s lurking near your front door? That’s where a DIY ESP32-based PIR motion sensor comes in. I recently built one to integrate with Home Assistant, and it’s been a game-changer for my home security automations. Here’s how you can do it too—no PhD in electrical engineering required.