DIY - 24Ghz mmWave Human Presence Sensor (Home Assistant)

Hey Folks,

I am happy to share a successful DIY project for a 24GHz mmWave Human Presence sensor and integration with Home Assistant.

Short back story - I have setup all my Smart home devices via Home Assistant (also integrated all those devices
under Apple Homekit), among those Smart home devices I have setup few PIR sensors in few Bedrooms & Bathrooms and running Automations with those motion sensors & lights & exhaust fans.
PIR motion sensors are excellent at detecting motion with quick response time, however they have major shortcoming which is they don’t detect room occupancy if someone is sitting still/idle in a room and when there is a sensor reset/timeout, the lights would go off :frowning:

Back to DIY story - I had been reading article & watching videos on YT about mmWave Human Presence sensors like the Aqara FP1 & FP2 sensor which were very effective in detecting human presence even if they are sitting/standing still, they are so effective that they even detect heart beats.

Buying/Importing Aqara Sensors turned out to be very expensive & even if I wanted to buy these sensors, they were out of stock most of the times, that I when I came across few new mmWave sensors which were released and could to be combined with a ESP nodemcu board for a DIY.

I followed the below video from @[digiblurDIY](’

https://www.youtube.com/@digiblurDIY’

) which was excellent and has very clear instructions in setting up & integrating the LD1125H Human presence sensor with Home Assistant
[This DIY mmWave Presence Sensor Changed Everything - LD1125H - YouTube](’

https://www.youtube.com/watch?v=VE62MAQDuCw&t=999s’

)
**[This DIY mmWave Presence Sensor Changed Everything - LD1125H How To Guide | digiblurDIY](’

This DIY mmWave Presence Sensor Changed Everything - LD1125H How To Guide | digiblurDIY’

)**

Now the challenge was to get hold of the LD1125H mmWave sensor, only option was to import it from the US or try Aliexpress (which was ruled out), fortunately for me a Indian supplier from Mumbai had imported these sensors and I was able order one sensor for DIY purpose :slight_smile:


What do you need for the DIY?

1). HLK-LD1125H-24Ghz Sensor
2). ESP32 or ESP8266 NodeMCU Dev Board
3). Female to Female Jumpers
4). 5VDC Power Source (can be ur USB adapters also)
Hot Glue Gun (optional)
Soldering Gun (optional)

Note - the guy in the video had chosen to include BME280 (Temp & Humidity) sensor to the setup, which is optional and I skipped the same.

The entire DIY process went smooth thanks to the video and I was able to flash ESPHome firmware & integrate the device with my Home Assistant setup, I placed this Sensor in one of my bathrooms and I fiddled around with the settings (distance, sensitivity, clearence time - refer the above video for more details) for the best results, I am happy to work the entire setup works perfectly as per my requirement, the bathroom is around 35 sqfeet with 10 feet high and I placed the sensor on one of the side walls (you can even place it in the ceiling).

I am currently looking for a 3D printed case which can hold the ESP board and also the sensor.

Expenses for the DIY

  1. LD1125H Sensor - β‚Ή1400 (including GST)
  2. ESP32 node mcuboard - β‚Ή500
  3. Jumper wires - β‚Ή100

Didnt have to buy a 5v USB adapter since I had spare ones.

my Sensor reading & settings

my current makeshift setup

[](’

IMG-3752 hosted at ImgBB β€” ImgBB’

)

[](’

IMG-3559 hosted at ImgBB β€” ImgBB’

)

If any TE member is interested in above DIY or have any questions, feel free to reachout to me, happy to help.

12 Likes

Rajguru Electronics? If I search this sensor only Indian site that comes up is Rajguru only.

yes, they are the one

1 Like

Share us the breakdown of expenses .esp the individual material costs.

1 Like
  1. LD1125H Sensor - β‚Ή1400 (including GST)
  2. ESP32 nodemcu board - β‚Ή500
  3. Jumper wires - β‚Ή100

Didnt have to buy a 5v USB adapter since I had spare ones, so total 2K

Note - Aqara FP2 sensor is 12k in India
[Aqara Presence Sensor FP2 – Modo Store - India (modotechnologies.com)](’

Aqara Presence Sensor FP2 – Modo Store India’

)

I have some questions.

  1. How do you connect the exhaust fans/ lights to home assistant? Do you use some kind of relay or are there smart exhaust fans available?

  2. How can we secure this against accidental unplug (kids messing with it, somebody removes the adapter to plug their phone etc)?

  3. If the ESP32 broke down during usage, will the light works normally till we replace the MCU, or will they malfunction?

Thanks in advance.

I am using a Tuya based Smart bulb (Wipro) in my bathtroom to automate brightness based on time, Tuya devices are very easy to integrate with Home Assistant, there are tons of videos on Youtube.
For exhuast fan I am using a Sonoff MIniR2 switch (for which I have flashed Tasmota firmware) and integrated it with HA as a switch.

The best option is to install it in the ceiling, ur nearby local electrcian can get the wiring done from a existing power point.
my current installation is temporary for testing purpose, if I dont find a proper 3D case I will use a empty switch box and mount all the devices in the ceiling.

Yes, light will continue to work if the board or sensor has issues, always make sure we dont disable the manual switch option during our smart home setup, few still prefer the traditional switches at home.

2 Likes

Hi, did you find a 3d printed case for this set up?

Also is this set up relevant to this date?

Can I got with the above esp32?

nope I did not get a 3d printed case, I used a small switch box to hide the sensor and esp board

yes this setup surely works even today

1 Like