Counting is looping in sensors

(deleted)

Look into state change detection (there's an example with the name in the IDE).

You want to count when an object (person) comes in view, not when it is in view.

(deleted)

(deleted)

Did you look into the state change detection method or Arduino state change tutorial?

(deleted)

Sounds like you have to first fix your sensor.

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