zr125
Newbie level 6
Can you give me some idea how to write this in c code?
Im trying to do visitor counter, the sensor is at the door.
there are 2 sensor, which is to differentiate which direction a person is going.
im using IR sensors, lets say a(far from door) and b (near to door), side by side.
if a trigger first, then b, i need to send data to serial port, indicating a person has come in.
if b trigger first, then a, i need to send data to serial port, indicating a person going out.
Im trying to do visitor counter, the sensor is at the door.
there are 2 sensor, which is to differentiate which direction a person is going.
im using IR sensors, lets say a(far from door) and b (near to door), side by side.
if a trigger first, then b, i need to send data to serial port, indicating a person has come in.
if b trigger first, then a, i need to send data to serial port, indicating a person going out.