I have 2 sets of Banner IR beam transmitter and receiver. I need to know when a person enters a room, and when they exit. I will establish Beam A and beam B.
When beam A is interrupted and then beam B, it means a person has entered the room. In reverse, it means they have left.
Upon enter, a sound clip is played. Upon exit, nothing happens.
This all takes place indoors, and the beams are about 12 inches apart. I plan to have them set up around waist high so that the beam is broken once ( as opposed to leg height, which has the double break issue). This does not have to be accurate in that groups, or a person stopping in between the beams or other such exceptions do not need to be considered.
I do not need a counter. I have searched around for IR beam break, IR tripwire, laser tripwire and so on. I am not asking for someone to write my code. I would like to be directed to examples so that I can customize to meet my needs. Or, if someone can point me in the direction of the logic needed to solve this.
Is it an issue of A + B = C, but B + A = D. I am having a weird time wrapping my head around the logic as it applies to the code.
I know it is simple and I can't find a solution because I am looking for a complex answer...so any direction or coaching or words of wisdom would be appreciated.
thanks