Patrick Campanale Uses ESP32 and ESPresense for Home Assistant Presence Sensor
In a column for How-To Geek published on Thursday tech writer Patrick Campanale argues that $6 ESP32 microcontrollers offer a superior, more personalized alternative to expensive commercial motion sensors.
A veteran tech editor formerly of 9to5Toys, Campanale points to the persistent frustrations of standard passive infrared (PIR) sensors, which frequently fail to detect presence when a user is stationary. He recalls a night when his own bathroom lights cut out while he was inside, forcing him to find his way through the room using his phone as a flashlight.
While millimeter-wave (mmWave) sensors can detect micro-movements such as breathing, Campanale told How-To Geek that he pivoted to a custom solution using ESP32 boards and ESPresense software because commercial systems are often cost-prohibitive and lack the ability to distinguish between different individuals.
Instead of relying on motion detection, the ESPresense system utilizes Bluetooth Low Energy (BLE) to identify specific devices, including iPhones, Apple Watches, and AirPods. Because every BLE-compatible device broadcasts a unique identifier, the system can determine not only whether a room is occupied, but exactly who is inside.
The setup process is straightforward, requiring only an ESP32 board, a Wi-Fi connection, and an MQTT broker linked to Home Assistant. By enrolling his devices, Campanale captures an Identity Resolving Key (IRK). This allows the system to maintain recognition of his hardware even when the devices rotate their Bluetooth addresses for privacy.
This granular identification enables highly personalized home automation, allowing Campanale to program office lights to trigger specific routines based on the occupant.
“The best part about ESPresense is Home Assistant knows whether it’s my wife or I in a room,” he wrote for How-To Geek.
He configures his office to activate only perimeter lights for his wife, while his own entry triggers monitor lights and music. Regarding performance, Campanale acknowledges a 5 to 10 second delay while the system scans for BLE signals. He considers this lag acceptable for most daily tasks, though he intends to keep mmWave sensors as a backup for specific needs, such as evening bathroom routines.
The project also provides a privacy advantage over commercial ecosystems.
“Home Assistant is private,” he said. “I’m not giving this tracking information to Google, Apple, or Amazon.”
Patrick Campanale, a senior author at How-To Geek since November 2023 specializing in Smart Home, PC Gaming, and Homelab coverage, draws on a tech journalism career spanning well over a decade. His background includes formative years developing mobile applications and blogging for various publications starting in 2010 around the Palm/webOS ecosystem, followed by running his own technology website from 2014.
He then served as an editor, writer, and reviewer at 9to5Toys from 2017, where over 14,000 articles were published during his tenure covering deals, roundups, and in-depth reviews of the latest technology, video games, and 3D printers. This extensive hands-on experience with maker-focused products and custom PC manufacturing directly informs his practical evaluation of ESP32 microcontrollers for DIY presence detection.
As he expands the setup throughout his house, he plans to purchase roughly a dozen more ESP32 boards. These units can be easily hidden in cabinets or drawers while drawing only about half a watt to one watt of power.