I have 3 optical sensors, placed vertically.
My conveyor transports a "box" past these 3 sensors, to measure height, depending on how many of the sensors that see the box (1, 2 or 3)
My question is, how do I limit my program to only trigger once when measurering?
I expect sensor 1 going high, would trigger my program to think the box had a certain height, before sensor 2 could go high, hence give me a wrong height.
My conveyor transports a "box" past these 3 sensors, to measure height, depending on how many of the sensors that see the box (1, 2 or 3)
My question is, how do I limit my program to only trigger once when measurering?
I expect sensor 1 going high, would trigger my program to think the box had a certain height, before sensor 2 could go high, hence give me a wrong height.