I’m so excited to share with you this DIY Human Presence mini project featuring Home Assistant and one super tiny, cheap and useful sensor called LD2410B. I know the name of the sesnor is not so user friendly and it is not easily memorable, but the steps that you are about to see are. I think this little guy can be a real game changer in the Home Automation world, but let me explain. 

The LD2410B Human Presence Sensor Specs

I heard about the LD2410B sensor from Paulus, that is the Home Assistant founder, as he mention it during one of the Home Assistant meetings.

The LD2410B module is a high-sensitivity human presence detector that uses Frequency-Modulated Continuous-Wave (FMCW) or somewhere you can see it as mmWave technology to detect humans.

It can tell if there are persons in the room, whether they’re moving or still, and even calculates their distance from the module.

Distance to the moving object is shown in Home Assistant. How cool is that?
Distance to the moving object is shown in Home Assistant. How cool is that?

This module gives real-time detection results and it is perfect for indoor use, but it is also rated that can work from -40 to +85 degrees Celsius, so I guess if you waterproof it somehow it can be used outside as well. The module can detect people up to 5 meters away with detection angle of around 60 degrees.

The LD2410B Price?

The sensor is super cheap compared to the value it can bring to your Smart Home.

It cost around $4.5 US dollars in AliExpress – https://s.click.aliexpress.com/e/_DFFkfSx or https://s.click.aliexpress.com/e/_Ddz9CDb

And this is the bigger version with larger PINS LD2410C – https://s.click.aliexpress.com/e/_DeeEUiv

And a little more in Amazon – https://amzn.to/3YtAu81

Just have in mind that there are different versions of the board. Make sure to grab the LD2410B or LD2410C versions, because these boards come equipped with Bluetooth and have been confirmed working with Home Assistant.

Be careful when selecting the Color/Model in AliExpress as some modules doesn't have Bluetooth
Be careful when selecting the Color/Model in AliExpress as some modules doesn’t have Bluetooth

You can use the above links, if that is easier for you.  

What is needed to DIY Human Presence Sensor?

Let’s see what else is needed for our DIY Human Presence Detection along with the LD2410B or C module.

If you don’t have Home Assistant yet and you want to learn more how to get it, then join my upcoming free Webinar. You can reserve your seat from this link – https://automatelike.pro/webinar

What are the options to get Bluetooth support in Home Assistant?

As I said above, the Bluetooth support in Home Assistant is also a must, as the sensor will send its data over Bluetooth Low Energy protocol, so that some useful Home Assistant automations can be created.

To have that Home Assistant Bluetooth support:

After I got everything that is needed. That is the LD2410B module, The Home Assistant with Bluetooth support and a spare USB cable – it is time to start the action. 

How to wire the LD2410B Presence Sensor?

It is quite simple.

I will connect the Red USB wire which is the USB power wire to the VCC PIN on the LD2410B module and Black USB wire to the GND PIN on the module.

Wiring the LD2410B Human Presence sensors with a USB-A cable
Wiring the LD2410B Human Presence sensors with a USB cable

The VCC pin on the module is the highest positioned one when the sensor is facing at you and the Ground (GND) PIN is the second highest.

Some soldering here is needed for better and long lasting connection.

Don’t be scared to solder. If I can do it, you can do it too. If you don’t have a soldering iron just ask a friend or buy one from Amazon or AliExpress. 

Soldering the wires to the module
Soldering the wires to the module

After I’m ready with the wiring, I will plug the USB cable into a USB port on any working machine or I can use a power adapter.

Plug in the soldered sensor in a USB port of a working desktop PC
Plug in the soldered sensor in a USB port of a working desktop PC

Then, I’ll move my attention to Home Assistant. 

Do you need a free Smart Home Glossary?

Before I continue to the LD2410B Home Assistant integration, I want to give you something! It’s my Smart Home Glossary that you can use as dictionary to find the meaning of the most common Smart Home words and abbreviations.

This glossary is actually a PDF file that I created for you and you can instantly download it from my other website for free – https://automatelike.pro/glossary

How to add LD2410B Human Presence Sensor in Home Assistant?

Adding the LD2410B sensor in Home Assistant is easy as walk in a park. Here is what did:

  • Inside the Home Assistant Dashboard I’ll press the “c” button to invoke the command search prompt.
  • I’ll type integrations, then I’ll select Navigate Integrations.

There is a good chance the LD2410B module to be auto discovered by Home Assistant. If that is not the case:

  • I’ll click on Add Integration button (lower right part of the screen)
  • I will search for: LD2410 BLE
  • Then I will follow the instructions to complete the set up. 
Adding the DIY Human Presence in Home Assistant
Adding the DIY Human Presence in Home Assistant

Alternatively to the above steps, you can use the My Home Assistant link below that will do the same for you:

Open your Home Assistant instance and start setting up a new integration.

As end result, I will have a new device inside Home Assistant with several entities/sensors and now I can start creating Home Assistant automations and scripts. For example, when movement is detected – turn on the lights.

Thanks to Motion and Occupancy sensor I can create endless Home Assistant Automations
Thanks to Motion and Occupancy sensor I can create endless Home Assistant Automations

3D Cases for the LD2410 Human Presence Sensor

If you have a 3D printer, you may wish to print yourself a case for this sensor and I will leave some links to 3D cases below: 

Additional & optional configurations

I forgot to mention that it is possible to further configure the settings for motion/static triggers by using a desktop software or a mobile app.

I didn’t do any additional configurations, but if you need to do this, then please, do not change the default password or the number of gates using the above software, as the Home Assistant Integration may stop working. 

What are the alternatives?

The off the shelf alternatives are over 10 times more expensive than the LD2410 sensor. For reference, check my Aqara FP1 & Home Assistant review below.

So, consider spend $5 and make your own Human Presence sensor – https://s.click.aliexpress.com/e/_DFFkfSx or https://s.click.aliexpress.com/e/_Ddz9CDb

If you mange to do it, share that accomplishment in the comments by typing #PresenceSesorOwned

I promise to congratulate you personally. 

I’m Kiril and I’m done writing. See you next week. Bye!


10 Comments

hanz · 14/02/2023 at 12:04 am

I love your info on LD2410 Human Presence Sensor. It gets me thinking if it is possible to use this sensor to Automatically lock a MacOS or WindowsOS once no presence is detected. On Mac one needs to send cmd-ctrl-q and on WindowsOS, one need to send Win-L command on the keyboard.
Keep up the good work!!

    KIril Peyanski · 14/02/2023 at 8:12 am

    Probably it would be possible. MacOS have a Home Assistant companion app. Check this article of mine – https://peyanski.com/home-assistant-companion-for-macos/ but I can’t remember if locking sensor was available. The other approach that I think could work is with a script that Home Assistant automation invokes that connects to the machine of interest via SSH and execute another script that would lock the machine.

    Wojciech Zieliński · 22/02/2023 at 1:25 pm

    Yes it is possible, I am doing it with regular proximity/presence sensors. You can use for example IoTLink to achieve it.

Lucas · 25/02/2023 at 5:48 pm

I read and read , i not detect the LD in home assistant. where is the problem?
In my Andorid App i detect the LD , and i update the firmware for the last version

Richard · 02/03/2023 at 5:43 pm

Hi
I have an LD2410 which I can connect to using the App on my phone over bluetooth.

I have a few bluetooth proxies set up with ESPHome to read temp/humidity data from some Mija sensors. I cannot see how to configure the ESPHome script to listen for the LD2410.
I have tried adding
sensor:
– platform: ld2410
but this tells me I need
ld2410:
this tells me I need
uart: etc.
but I want to connect over bluetooth not have to dedicate another ESP device to make a UART connection.

Any help, please.

Christian · 13/03/2023 at 4:12 pm

I was encouraged by your “If I can do it” comment in the video – but I cannot solder. There, I admit it.

Those half-sized pins on ld2410B are impossibly small!
Got solder on my desk, my finger, and – eventually – the pins – basically shorting them together,
At this point, I assume I cooked the board trying to get the solder back off or at least separated.
Need to find a different solution to get power to the board.

Good thing I bought 8 of these little boards – and they were just over $3 a piece.

Anyway – great content, Kiril – love your channel & guides!
And for the short moment I managed to get power to the board before soldering, I saw the board pop up in HA and give me rapidly updating presence and motion detection events. So cool!

    KIril Peyanski · 13/03/2023 at 10:02 pm

    Christian, don’t give up on soldering so fast. This one, due to the small pins is hard even for ppl with experience, try to practice on something more easy first (like two wires), use some kind of clamps, check some Youtube tutorials and go ahead. Apart from that good job on that short moment when you saw the board in HA that should be a motivation. Anyways, thanks for the good word and interesting comment. Keep up!

    Hanz · 11/04/2023 at 9:52 pm

    If you dont want to solder, the easiest way is to get the LD2410 kit which connect using USB-C cable directly. See https://www.aliexpress.us/item/3256804165278321.html.

xrak · 25/06/2023 at 9:57 pm

Hi, I’m trying to use this on a raspberry pi with home assistant but RPI-4 is not able to see this device (sudo bluetoothctl devices shows a list of devices but not the MAC for lb2410b). The BLE scanner on an andriod phone is seeing the lv2410b though. What can I possibly be missing.

Vincent · 22/07/2023 at 2:53 pm

Hello KIril, my main concern is about refresh rate. I want to use Ld2410B as a trigger to light up my stairs and I need the readings of the distance to be accurate and fast. What is your opinion on refresh rate? Is the ld2410b the fastest you have tested? Thanks in advance!

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *