Closed sotidis closed 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
Thanks ! i use iobroker ,if the value People in the room now: "-" 111227 , does not count correctly.
I've edited the code and eliminated the lines of code that produced that output. Thank you for noticing that
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