welcome to DPV technology in this video
we will design a person counter that
tells you how many persons are inside
the room so let's get started
you can buy all types of electronic
components modules sensors at best price
from www.dpvtechnology.com. for this project, we need two ir sensors, one Arduino board,  you can
use any versions of arduino and a
breadboard and some connecting wires
male to male and male to female jumper
wires here is our IR sensors it has four
pins VCC ground digital output and
analog output in some IR sensors only
three pins are there
VCC ground and digital output you can
use that sensor also here is our circuit
diagram connect the ground pin of the
sensors to ground pin of arduino VCC pin
of the sensors to 5 volt pin of
arduino then connect the digital output
pin of the first sensor to pin number 7
and connect the digital output pin of
the other sensor to pin number 8 of the
arduino here is our connections here is
the sensor 1 and here is the sensor 2
now connect your Arduino board to your
pc through this USB cable now open your
arduino ide software and then upload this
code the link of this code is given in
the description of this video
one important thing is there I have kept
the output of the sensor by default high
that means when there is no obstacle in
front of the sensor the digital output
is high you can adjust it by adjusting
this potentiometer knob by turning this
potentiometer knob or by default if your
sensors output is low that means if
there is no obstacle in front of the
sensor then if your output of the
sensor is low then you have to remove
this not operator from the digitalRead
functions in that code you have to
remove all these not operator and you
have to put the not operator in front of
the
digitalRead functions in the code where
the not operator was not present
previously now after uploading the code
go to your Serial monitor now when I enter
into the room so here we can see
entering into room number of person
inside the room 1 , again so number of
persons inside a room two three four now
I will exit from the room so if I will
exit you can see exiting from room
number of persons inside a room three
again number of persons inside the room
two number of persons inside the room
one that means our sensors and code are
properly working now keep some distance
in between two sensors to work it
properly because the code is written in
such manner you can buy all types of
electronic components modules sensors at
best price from www.dpvtechnology.com so thank
you for watching
