Andrea-Fox / peopleCounter

Code for a cheap people counter based on VL53L1X sensor and ESP32/8266
The Unlicense
95 stars 27 forks source link

People in the room now: 111227 #4

Closed sotidis closed 3 years ago

sotidis commented 3 years ago

Hello . is it ok?

: warning: 'RIGHT' defined but not used [-Wunused-variable] static int RIGHT = 1; ^

One person has entered in the room. People in the room now: 111227 One person has exited the room. People in the room now: 71227

Andrea-Fox commented 3 years ago

No, there is definitely something wrong. Later this day I will update the code to eliminate this kind of behavior, however my advice is to use this code only for finding when someone is entering (or exiting) the room and keep count of the people inside the room using, for example, Home Assistant

sotidis commented 3 years ago

Thanks ! i use iobroker ,if the value People in the room now: "-" 111227 , does not count correctly.

Andrea-Fox commented 3 years ago

I've edited the code and eliminated the lines of code that produced that output. Thank you for noticing that