Hi! You can try using the logic gates. Logic gates detect items at a position and stay open for as long as there are items there. This lets you control the flow of items and can be used to make more reliable automation. Here is an example of this in use:
The source of the gates is set to be on the output conveyor and the waste bin is there so that the conveyor doesn't clog up if the chest is full.