Let's add to our room sensor - Part 5 - Movement detection
Summary
TLDRIn this DIY Electronics tutorial, Pascal guides viewers through building an ESP-based motion sensor using a passive infrared (PIR) sensor. The project integrates with ESP Home to monitor movement and control lighting, distinguishing between movement and presence. The tutorial covers hardware setup, software requirements, and coding, with a focus on practical applications and future enhancements using millimeter wave sensors.
Takeaways
- π The tutorial is about building an ESP-based motion sensor package using ESP Home.
- π The HC-SR501 PIR (Passive Infrared) sensor is recommended for its precision and reactivity in detecting motion.
- π οΈ PIR sensors work by detecting changes in infrared radiation caused by body heat, commonly used in security and automatic lighting.
- π¬ The difference between PIR and millimeter wave sensors is highlighted, with the latter providing more detailed presence detection.
- π‘ PIR sensors are cost-effective and simple for basic occupancy detection like motion-activated lighting.
- βοΈ The HC-SR501 has settings for repeat trigger and single trigger modes, along with sensitivity and time delay adjustments.
- π© The assembly process involves connecting the PIR sensor to specific GPIO pins on the ESP board, with safety measures taken to avoid damage.
- π The code for the PIR sensor in ESP Home is simple and involves binary GPIO sensor states, with unique identifiers and device classes.
- π The tutorial includes practical demonstrations of the sensor's functionality, including triggering the sensor and observing its effects on a light.
- π Home Assistant integration is showcased, with the sensor's data feeding into Home Assistant for automation purposes.
- π€ Automation examples are provided, such as turning a light on when motion is detected and ensuring it only activates under certain light conditions.
Q & A
What is the main focus of the tutorial presented by Pascal?
-The tutorial focuses on building an ESP-based motion sensor package using ESP Home, with the aim of monitoring movement to switch a light on and off using automation.
What is the difference between a passive infrared sensor (PIR) and a millimeter wave sensor in terms of occupancy detection?
-A PIR sensor detects motion by measuring changes in infrared radiation caused by body heat and is cost-effective and simple for basic occupancy detection. A millimeter wave sensor, on the other hand, emits microwave pulses and analyzes the reflected signals to detect movement with more precision and can even detect the presence of a person when there is no movement.
Why would someone choose a PIR sensor over a millimeter wave sensor for a project?
-One might choose a PIR sensor for its simplicity, cost-effectiveness, and quick response to significant changes in infrared radiation, making it suitable for applications like motion-activated lighting and security alarms.
What are the two states of a PIR sensor?
-A PIR sensor has two states: it sends a high 5 volts signal when motion is detected and a low signal when motion is not detected.
What is the purpose of the repeat trigger and single trigger settings on a PIR sensor?
-The repeat trigger setting allows the sensor to continuously detect motion and restart the delay timer with each motion, useful for tracking ongoing activity. The single trigger setting causes the sensor to trigger once and maintain the output state for a specified time, ignoring additional motion during this period.
How does the sensitivity potentiometer on a PIR sensor affect its performance?
-The sensitivity potentiometer adjusts the range of detection. Turning it clockwise increases the range, while turning it anticlockwise decreases it.
What is the function of the time delay potentiometer on a PIR sensor?
-The time delay potentiometer adjusts the duration for which the sensor maintains a high output signal after motion is detected. Increasing the setting with the potentiometer extends the delay, while decreasing it shortens the delay.
What are the three typical pin assignments for a PIR sensor?
-The typical pin assignments for a PIR sensor are ground (GND), output/data (OUT or DATA), and VCC (power supply).
How does the tutorial demonstrate the integration of the PIR sensor with Home Assistant?
-The tutorial demonstrates the integration by showing the sensor's data feed in Home Assistant, creating an automation that switches a light on when motion is detected, and using conditions to ensure the light only turns on under certain illuminance levels.
What is the purpose of the condition block in the automation created in the tutorial?
-The condition block is used to ensure that the light only turns on when the illuminance level falls below a certain threshold, preventing the light from turning on in bright conditions where it might not be needed.
What is the next step in the tutorial series after adding the PIR sensor?
-The next step in the tutorial series is to add a millimeter wave sensor for presence detection.
Outlines
π Introduction to DIY Electronics with ESP Home
Pascal welcomes viewers to another tutorial on DIY Electronics with ESP Home. The series focuses on building an ESP-based sensor package, starting with a passive infrared (PIR) sensor. The tutorial is structured with chapters accessible through the video timeline or description. The goal is to add a PIR sensor to an ESP Home room sensor project to monitor movement and control lighting. Pascal emphasizes the value of the tutorial and encourages viewers to like, subscribe, and hit the notification bell. Hardware and software requirements are briefly mentioned, with a specific recommendation for the HC-SR501 PIR sensor. The tutorial also outlines the basics of infrared motion detection sensors, explaining their use in security and lighting applications.
π Understanding PIR Sensors vs. Millimeter Wave Sensors
This paragraph delves into the differences between passive infrared (PIR) sensors and millimeter wave sensors. PIR sensors detect general movement by measuring changes in infrared radiation caused by body heat, making them cost-effective for basic occupancy detection like motion-activated lighting and security alarms. In contrast, millimeter wave sensors use microwave pulses to analyze reflected signals, detecting even subtle movements with precision. They are suitable for advanced applications like movement detection in confined environments or areas with minimal movement. The paragraph also discusses the speed of detection and the factors influencing the choice between PIR and millimeter wave sensors, such as range, accuracy, cost, and power consumption. Pascal plans to use both types of sensors in the tutorial series, starting with the PIR sensor.
π οΈ Setting Up the PIR Sensor Hardware
Pascal demonstrates how to physically set up the PIR sensor, starting with checking the pin assignments (VCC, OUT, DATA, GROUND) and ensuring the correct order. He advises viewers to always check the pin order when working with different boards. The tutorial includes a step-by-step guide on connecting the sensor to the ESP Home system, using GPIO14 for the PIR sensor. Pascal also provides a full circuit diagram on his GitHub page for reference. The assembly process is detailed, including the use of a frame to mount the sensor and the necessary precautions to avoid damaging the components.
π» Coding the PIR Sensor for ESP Home
The paragraph covers the coding process for integrating the PIR sensor with ESP Home. Pascal explains that the code for the PIR sensor is similar to that of a capacitive touch sensor due to their binary nature. The code involves defining the sensor as a platform GPIO, using GPIO14, and setting an ID and name. A key difference is the addition of a device class as 'motion'. The tutorial also includes instructions for installing the sensor wirelessly and checking the logs to ensure the sensor is functioning correctly. The movement detection is tested, and the results are shown in the Home Assistant dashboard.
π Integrating Movement Detection into Home Assistant
Pascal guides viewers through integrating the movement detection sensor into the Home Assistant dashboard. He demonstrates how to add the sensor to the dashboard and edit it to display 'movement detected' instead of 'not movement'. The tutorial also covers how to create a simple light card for controlling a light based on the sensor's input. The focus is on ensuring that the movement detection is accurately reflected in the Home Assistant interface, with the sensor's status clearly visible and functional.
π€ Automating Light Control with Movement Detection
This paragraph introduces the concept of automating light control based on movement detection. Pascal explains how to create an automation in Home Assistant that triggers the light when movement is detected. He also discusses the importance of adding a condition to ensure the light only turns on in specific lighting conditions, using a light sensor to determine the ambient light level. The automation is tested, and a condition is added to trigger the light only when the light level falls below a certain threshold. The tutorial also covers creating a second automation to turn off the light after a set period.
π Addressing Automation Timing Issues and Future Plans
Pascal addresses a potential issue with the automation timing, where the light might not turn off as expected due to repeated triggering of the sensor. He mentions that there are ways to overcome this issue and promises to cover it in a future tutorial. The paragraph concludes with a reminder to like, subscribe, and support the channel through Patreon or Buy Me a Coffee. Pascal signs off, looking forward to the next tutorial where he plans to add presence detection using a millimeter wave sensor.
Mindmap
Keywords
π‘DIY Electronics
π‘ESP Home
π‘Passive Infrared Sensor (PIR)
π‘Motion Detection
π‘Home Assistant
π‘Millimeter Wave Sensor
π‘Occupancy Detection
π‘Illuminance Sensor
π‘Automation
π‘Device Simulator
Highlights
Introduction to a new tutorial series on building an ESP-based motion sensor package using ESP Home.
Explanation of the utility of a passive infrared (PIR) sensor in DIY electronics for motion detection.
Recommendation of the HC-SR501 PIR sensor for its precision and reactivity in motion detection.
Overview of the difference between passive infrared sensors and millimeter wave sensors for occupancy detection.
Description of how PIR sensors function using pyroelectric sensors to detect heat energy changes.
Advantages of PIR sensors in terms of cost-effectiveness and simplicity for basic occupancy detection.
Details on the capabilities of millimeter wave sensors for advanced applications like visitor presence monitoring.
Technical comparison between PIR and millimeter wave sensors in terms of detection speed and accuracy.
Practical setup instructions for the HC-SR501 PIR sensor, including pin assignments and settings.
Demonstration of assembling the PIR sensor with an ESP Home system for motion detection.
Code explanation for integrating the PIR sensor with ESP Home, highlighting similarities with capacitive touch sensors.
Tutorial on setting up automation in Home Assistant to control lighting based on PIR sensor input.
Use of conditional logic in automation to prevent lights from turning on during daylight hours.
Troubleshooting tips for ensuring the PIR sensor is correctly calibrated and functioning with Home Assistant.
Discussion on the limitations of PIR sensors and the upcoming tutorial on adding millimeter wave sensors for enhanced presence detection.
Final wrap-up summarizing the tutorial's achievements and previewing the next steps in the series.
Call-to-action for viewers to like, subscribe, and support the channel for more DIY electronics tutorials.
Transcripts
hey there I'm Pascal and welcome to
another UT tomator tutorial if this is
your first time welcome to the wonderful
world of DIY Electronics with ESP home
in this series we are building an
over-the-top ESP based groom sensor
package using ESP home card to the
series above here if you've seen any of
my previous tutorial welcome back I know
that your time is valuable so the
tutorial say chapters which you can
access from the video timeline or in the
description if you want to skip to the
me staff go straight to about the P
sensor where I explain why we want to
use a passive andrate sensor in today's
tutorial we will continue to add to our
room sensor by adding a p sensor to our
ESP Home Room sensor project to monitor
movement and to switch a light on and
off using an
automation with a little twist we'll
also make the distinction between what
is movement or what is
resence if you like this tutorial please
like subscribe hit the notification Bell
this will enable the YouTube algorithm
to present this tutorial to more people
let's review our hardware and software
requirements I'll leave links to some of
the components on my ga page some of
these may be Affiliated links and I will
get back a percentage of the sales but
it will not cost you a cent more thank
you for supporting the channel for the
hardware we will need a passive infate
sensor there are various passive infate
sensors but the specific one that I will
recommend today for this tutorial is
this one it's an HC
sr501 P infrared sensor there are
alternatives there are many P sensors
however what I'm hearing is that they're
not as precise and as reactive as the
bigger one software wise we'll need home
assistant and ESP home first let me
outline what an infrared motion
detection sensor is and the reason we
would want to use
one passive aneroid sensors or P for
shorts are electronic sensors that
measure infrared light radiating from
objects in the field of view these
motion sensors are commonly used in
security alarms and automatic lighting
applications they detect general
movement but do not give information on
who or what move for that purpose an
Imaging IR sensor is required P sensors
work by using a pair of pyro electric
sensors to detect heat energy in the
surrounding environment these two
sensors sit beside each other and when
the signal differential between the two
sensor changes if a person enters the
room for for example the sensor will
engage that may mean it triggers an
alarm notify authorities or maybe just
turns on a light IR radiation focuses on
each of the two pyro electric sensors
using a series of lenses constructed in
the sign sensors housing in addition to
security and lighting applications P
sensors are also used in more advanced
applications such such as visitor
presence monitoring in robotics in
robotics for example a p sensor can be
used for movement detection enabling
robots to interact with their
environment more effectively despite the
sophisticated technology behind these
senses they are relatively easy to use
in Practical
applications let's address the elephant
in the room Motion versus presence and P
versus millimet wave passive infrared
sensors and millimet wave sensors are
both used for occupancy detections but
they function very differently and
provide very different information P
sensor primarily detects motion by
measuring changes in infrared radiation
caused by body heat they cost effective
and simple to deploy making them
suitable for basic occupancy detections
such as motion activated lighting and
Security Alarms however P sensors only
detect general movement this and do not
provide detailed information about what
moved on the other end millimeter wave
sensors emit microwave pulses that
analyze the reflected signal to detect
changes in movement and like P sensor
millimeter wave sensors can be used for
stat presence detection meaning they can
detect the presence of a person even
when there is no movement some can also
detect multiple persons and provide
information about the movement direction
of each of these people this makes the
millimet wave sensor more suitable for
advanced application such as movement
within a confined environment where are
people going but also in the cases of
tlets where we do not move move much
office or study or a TV room where
movement may not be evident and cannot
be detected by a p sensor the speed of
detection between passive infrared
sensors of p and millimeter wave sensors
can depend on various factors including
the specific sensor model and their
configuration P sensors are typically
used for movement activated system or
motion activated systems they're
generally very quick to respond when
there is a significant change in
infrared radiation such as when a person
enters a room on the other hand Millet
wave sensors emit microwave pulses and
analyzes the reflected signal to detect
changes in movement they can detect even
the most subtle movements with Precision
which may require more complex signaling
processing and could potentially produce
a slight delay however in practical
application both p and millimet wave
sensors are fast enough to meet
requirement for most use cases such as
Lightning control security system and
occupancy detection the choice between p
and millimeter wave often depends more
on factors like range accuracy cost
power consumption than speed in summary
both p and millimet wave s ens can be
used for presence detection millimeter
wave sensors provide a higher level of
detail and accuracy whereas P detects
broader movement and in my experience is
faster at detecting someone walking into
a room I want to make sure that you
understand I will be using both I found
that millimeter wave sensors are
generally slower than its counterpart
the P sensor today we are adding a p
sensor we will add the millimet wave
sensor to our room sensor package in the
next tutorial in this
series about the P sensor as you will
see later the code for the P sensor is
very simple you would even be forgiven
for thinking it's a copy of the
capacitive touch sensor P sensors only
have two states these are sent out to
the out or data pin motion is detected
bringing us a high 5 volts motion is not
detected bringing us a low however the P
sensor has various onboard settings in
addition to its spins the jumper has two
settings repeat trigger in this mode
every motion is detected and the delay
timer is restarted if motion occurs
again before the timer expires the
condone resets this allows the sensor to
repeatedly trigger as as long as there
is continuous movement it's useful for
scenarios where you want to track
ongoing motion or activity or leave a
light on while somebody is in the room
single trigger when a motion is detected
the output of the pr sensor turns High
immediately it remains high for the
duration set by the potential meter a
knob that adjusts the Sensi the
sensitivity and time delay during this
period any additional motion is not
processed and the timer does not res
essentially it trigger once and
maintains the output State for the
specified time in our project initially
we'll use the repeat trigger once we
introduce a millimeter wave we'll use
the single trigger and I'll explain why
at that time there are also two
potential meters sensitivity adjustment
potential meter clockwise will increase
the range and anticlockwise will
decrease the range of Sensi sensitivity
the time delay adjustment potential
meter clockwise increases the delay and
anticlockwise decreases the delay the
pin assignments are as follows ground
out or
data and VCC some boards are different
please check by unclipping the plastic
Dome I usually start with the following
settings single trigger over here
minimum on the time and halfway on the
sensitivity potential meter you can tune
it from here and decide how you're going
to set it
up so here is a typical infrared uh
infrared sensor or a passive infrared
sensor the first thing that I'd like to
show you is that you can clip
off the um the plastic on
top and the first thing that you that we
need to check is the three pins and the
order is VCC out of data and ground now
these are not necessarily always in the
same order I would advise you to check
every
time and then we are going to put it
back and I am going to turn it on its
side
here is the uh trigger setting I usually
put it in multiple
trigger when I am testing and
building then after that you've got the
um sensitivity potential meter which is
halfway and the timer which is at
minimum you can tun it from from here
you can chin it in whichever way you
feel comfortable with uh some need need
quite a bit of chining others work
straight out of the
box as usual because it's a binary
sensor we can use almost any free GPI
pins but we will use gp14 for the P
sensor I remind you that we are using
the following pins already gp26 for the
dht22 gp21 for the i2c
SDA gpio 22 for the
i2c and gpio 12 for the capacitive touch
sensor I will also attach a full circuit
diagram on my giab page for this
tutorial
how about we put all of this together
first I'd like to introduce you to a
little frame that I've built um for this
purpose um basically it's a um
three uh a three dupon uh
plug that goes directly
into the
P like this and then I just have the M
dupon plugs on the other side first
thing that we're going to do though is
we are going to switch
off the
um the sensor package so that we don't
blow
anything so we're going to open again to
make sure which one is our um our VCC
and the VCC is set on the purple
and that's all I need to know so we are
going to plug this into VCC the purple
oh that was a gray okay so we are going
for the purple into the
VCC if it doesn't mind there we are then
the middle one is the gray and that's
the data and the
data the
DAT is going into
[Music]
gpio4 and
gpio4 is a one right after gpio
12 so it comes or it should be coming
from over here I apologize for hiding
some of it and obviously the last one is
the blue and that is
ground assuming again that we can put it
into the G
uh come on a few moments
later okay so it is now into the ground
so to recap gray is
on
gp14 Blue is into
the negative or the ground and uh purple
is the
positive we we will now use a little bit
of tech as you can see I've put some
here which I will put over here and I am
going to mount the p over
here and stick
there and switch on the
package flashes once and it should be
online and it is
so basically we are
finished with the assembling and we can
move on to some
code I remind you that all of the code
is available on my GitHub page for this
tutorial the link is in the description
first things first we've decided that we
were going to use
gpio4 now you will be forgiven for
thinking that the code that I'm about to
paste is very similar to the capacitive
touch sensor and that's because both use
a binary gpio sensor there are some
differences and I will be pointing them
out to you so let me go ahead make a
little bit of
space um there we've made a little bit
of space I'm going to paste the code and
sort out this tabing there and there we
are we've got the passive infrared
sensor code I am going to center it in
the screen so that we can all see it
properly and as per the capactive touch
sensor it's platform gpio then we are
using gpio
14 and we are declaring an ID for it
then its name is movement the difference
here is we are defining a device class
as motion something we never did for the
capacitive touch light switch or touch
sensor next thing we need to do is to
save it and we are going to install it
wirelessly as usual and I am going to
just point out that whilst it
uploads and we'll just have to wait for
a second there you will see that the
light the blue light
flashes and that's because it's going
into a safe mode and it is uploading and
it is indicating that it is uploading
when it is finished which is
shortly there we are uh we are waiting
now for the
logs and it least yeah you saw it flash
a couple of times it should have stopped
flashing and that was it connecting back
to the Wi-Fi and here we are it has
started the logs movement sending State
off which is a default uh sign sign for
movement it hasn't picked up anything
now let's see if I can trigger
it and there you are it's picked up the
state on and it has switched light on
and that's because this is the first
time of the first time that I record
this piece okay so I will see you in the
uh web server section in a second
so we are here at the web server and uh
we going to click on visit it's going to
ask us for the username and password and
we know this because we've set it
up and apparently I can't spell admin
and my password okay and I'm going to
sign in and here we are and we are
specifically looking at movement in the
middle of
there and what I'm going to do is I'm
just going to bring my hand on within
its uh its
range yes there it is and uh it picked
up the movement that's what I wanted and
it takes
about uh 10 seconds to actually go off
and there we are okay so we are very
happy that's working we are going to go
straight into home assistant
so let's go into home assistant and the
first thing we want to check is that we
are getting the feed of the device
through to home assistant so we are
going to go to ESB home on home
assistant and uh we are going to look at
the sensor and movement currently is
clear let me pass my hand and yes it's
detected and it should go off
shortly there we are and if I pass again
it should see movement great so that's
working so now we're going to go all the
way to the dashboard if the dashboard is
a bit different to what you've seen in
the past uh I have cleaned it up and all
I did is add the light and the light
just switches the light on as you can
see and and switches the light
off uh it is a very simple card because
card sorry because it is the light card
uh let me show you where you're going to
find
that you're going to add a card and if
you go a little bit down you will find
the light card and that's the card that
I add it it's very straight forward you
point it to the uh light and that's that
okay but right now that's not what we
are interested in right now we
interested in having a feedback to see
if the movement is detected or not so I
am going to hit edit on our ESP Home
Room sensor card I going to go right at
the bottom and
move and uh ESB home movement sensor let
me try that again es oh sorry movement
move
there it is ESP home movement yes that's
the one that we're looking for I am
going to drag it all the way up because
I like movement at the top I'm also
going to go and edit it and all I'm
going to do is
move not not
movement movement I'm going to save that
and we and we're going to save the
dashboard and we now have the movement
inside of room assistant and let me show
you detected oh eco2 detected what
happened you see I break things from
time to time too uh so I'm going to go
and edit this where is oh I see what
happened okay that's fine we just going
to go EC
o 2 and there it is and we're just going
to save it I I must have missed clicked
something somewhere uh it's clear and I
put hand it's detected
and pretty much that's it we are
finished with the dashboard and uh yes
the temperature right here inside the
room is 18.8 De and as a matter of
interest um it's uh 16Β° outside for us
in Africa it's cold so I will see you
and let's do an
automation now that we have the uh
sensor working we can start with the
Automation and all we're going to do is
to switch our light on and off and we'll
be using the simulator we built in the
last tutorial in this series for the
demonstration that really you can use
any Smart Switch the automation yl will
be on my K on my G page link as usual in
the description
what we're going to do is when movement
is
detected we are going to take the uh ESP
room sensor Movement we and we're going
to set the simulators light from off to
on um after that we will do the inverse
of that in a separate automation now we
could do both of them in the same
automation but I don't want to overly
comp overly complicate things so let's
go to automations and uh we go to
settings automations and scenes create
new automations and oddly enough you're
going to see motion activated light
however motion activated light only does
motion activate activation of the light
we want to do one step further and I
will show you what I'm talking about in
a second so we're going to create a
brand new automation the trigger is is
going to be our
device which is as we know the room
sensor and we are going to choose ESP
room sensor movement started detecting
motion so there we are saying H we are
detecting motion to check if it works
it's pretty simple I'm going to put my
hand in front of it and it's been
triggered there are no and if we going
to go to then do and we are actually
going to put
a building block and you will see why
later right now though all I'm going to
do is take an
action and I am going to put the device
in yome device simulator turn on ESP
home device simulator simulated light no
flashing no none of that okay so what is
this if for if you've got a 2,000 wat
light outside that you want to trigger
with an infrared do you want that light
to come on in broad daylight in fact it
wouldn't even make it Dent even at 2,000
wats you don't so what we're going to do
is we are going to add a condition and
the condition is
device and we're going to go to the room
sensor and we are going to go to
elins below and um I have a little table
here um which I will put into my G up
page for this tutorial but uh the
recommended values out door is generally
about 10,000 laks indoor near window
about 1,000 laks in office we need about
500 laks in the home about 150 laks now
now I can tell you right now that the
board is receiving 258 laks so what we
are going to do is if we fall below 150
LS uh
lxs uh we are going to trigger the light
otherwise we don't now you're going to
tell me how you're going to show this
I'm going to show this to you in a
second so the new automation is going to
be called ESP home
move
M
detected okay save
now is this going to trigger the light
so let's check let's put my hand
through and movement has been detected
and the simulator light hasn't come on
what have I done wrong is it triggering
at all
is below 100 oh obviously one come
on we are above 150
laks so it can't come on so let me
switch off my uh main light that lights
me up and lights the board
up here we are and I need to wait for
about 30 seconds
for the illuminant sensor to update
there we are and we are currently at
44.2 laks so if I put my in front of the
sensor right now it should
trigger and yes it does so we are now
with a light that works and it takes
about 30 seconds to switch it off a few
moments
later it's a long 30 seconds because it
won't switch off I will have to do it
manually okay we haven't done the switch
off part yet all right so we are going
to go back and we are going to open a
new
automation when when the trigger of a
device in particular the room sensor and
when movement is STO detecting motion
right then do we do not need in this
case a building block we'll just switch
it
off okay and we're going to paste the
device it's ESP device simulator and
turn on the
ASP device simulator we want to actually
turn it
off there we
are to make it wait for a minute which I
like to do one minute or two what you
would do is you would add here 01 we're
not going to do that because we are
going to waste time if we do that and
I'm going to save it and call
it ESP
home
movement not
and we're going to save this and let's
trigger it
again and we are going to trigger it
again and it should switch off shortly
about 30
seconds there we are and it has been
triggered okay let me put the light back
on and uh
and uh one thing that we need to note is
that each time the sensor is triggered
the time it gets
reset um so if the timer if the uh if
it's retriggered again inside of Home
assistant it will just increase the time
as time goes by now as I
said about 60 seconds before you switch
off the light
uh there is also another problem that
exists I'm going to switch on the light
for you and we are going to wait about
30
seconds and it's been
triggered so I switch on the light and
my automation switches it off I will
show you how to overcome that in either
the next tutorial or possibly the next
tutorial or One A little later there are
ways is around that and I will show you
how to do that uh right now I think this
tutorial has been long enough and we are
coming to a close so here we so I'll see
you in the wrap
up now that we have movement detection
to switch light on and
off we can add presence detection using
a Mim wave sensor this is coming in the
next tutorial in the series little
reminder please like subscribe and smash
that notification button so you never
miss a video if you want to support the
channel a little more I am on patreon
and buy me coffee links are in the
description this was Pascal I'm signing
off and see you in the next tutorial
[Music]
n
[Music]
Browse More Related Video
Let's build a room sensor - Part 1 - Temperature, Humidity, and Bluetooth
This DIY mmWave Presence Sensor Changed Everything - LD1125H | digiblurDIY
New Blynk IOT Smart Plant Monitoring System
Let's add to our room sensor - Part 3 - eCO2 and TVOC
INTEGRATION OF SENSOR AND ACTUATORS WITH ARDUINO-I
Monitoring Suhu Dan Kelembaban Menggunakan ESP32 + DHT22 Dengan Protokol MQTT
5.0 / 5 (0 votes)