welcome to DPV technology in this video
we are going to design a simple people
counter using this IR sensor and Arduino
UNO so let's get started you can
buy all types of electronic components
modules sensors at best price from
www.dpvtechnology.com  this IR sensor has four pins. In some IR sensors, there are only three pins.
 you can use three pins
in IR sensor also so it has VCC ground
digital output and analog output so we
have to connect this VCC pin to to
five volt pin of the Arduino board then
the ground pin of the sensor to ground
pin of the Arduino board you can connect
to any one of the ground pins there are
three GND pins in the Arduino UNO
so the digital output pin that is the
DO pin we have to connect this DO
pin to any of our digital pins so let
us connect it to pin number seven of the
Arduino so now our connection is ready
you can buy this sensor from our
official website www.dpvtechnology.com now
connect your Arduino board to your
laptop or PC through this USB cable now
open your Arduino ide software and copy
and paste the code the, link of the code
is given in the description of this
video and then upload this code so here
we can see done uploading now go to your
serial monitor now keep this baud rate at  9600 now I have kept this sensor on a
matchbox so now we can see when I cross
this sensor here in the serial monitor
we can see count is increased by one so
again I will cross this so we
see count two and also we can see this
digital output LED will turn on when I
cross it so so here three again so four
five six now when I cross this sensor
from this side we can see count also
increased so eight nine ten that means
the count is increased when I cross this
sensor from any of the side in the next
video we will use to IR sensors to
design a people counter that will tell
you how many people are inside the room
that means when a person enters into the
room it will increase the count and when
he leaves it will decrease the count so
the link will be in the description of
this video you can buy all types of
electronic components modules sensors at
best  price from www.dpvtechnology.com
