Is there a code that counts the number of people in front of the sensor?

Can you help me
I would like to obtain a simple code to connect five IR sensors. When there are people in front of the sensors, it appears on the screen that there are five people, and when there is a decrease, the number decreases from 5 to 4, and so on.

Your topic has been moved to the Project Guidance category of the forum

Will each sensor only the able to sense the presence of a a single person ?

Yes, my friend

Have you got a working sketch that senses the presence of a person in front of a single sensor ?

Are your sensors far apart so two sensor will not sense the same person?

Yes, every sensor is in a room

As previously asked

There is no diagram unfortunately

In the arduino world, when we say "sketch" that means code, not a diagram.

Do you have any working code?

Indeed. :roll_eyes:

However, the code is useless without knowing what hardware is connected to it, and how.

Therefore a schematic diagram (aka "circuit diagram") is also required.

And full details of the actual sensors you are using - please give a link.

See: 'How to get the best out of this forum' - in particular, ' Posting code and common code problems' and ' Schematics or circuit diagrams'

Some free online tools for creating schematic (and other) diagrams:

Thank you for the warning. I will make a project plan and provide it to you to help me

Let me ask again

Have you got a program that senses the presence of a person in front of a single sensor ?

1 Like

If there were five people lined up in front of this sensor within its field of view, you'd see their thermal images without having to jump through any code hoops. (There are less expensive versions with less resolution.) And as people leave the FOV, the number of people shown will decrease.

Here's an example of one person...

But, you haven't described what you are trying to achieve in enough detail for anyone to see the full picture :slight_smile: , so this sensor may not be what you need.

Maybe try fixed LIDAR on a Servo Motor?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.