I did something similar to this a while back for a washer. I wasn't real concerned with how long the parts were in there, just that there wasn't a pile-up inside. I set up a counter that was incremented by parts feeding in and decremented by parts exiting. If the counter ever got higher than...