Object counter « counting box »

Thanks for all these replies.

Now i have 3 questions for you :

  • what is the maximum distance that a ir proximity sensor can detect ?

  • can i mount both ir sensors together to build a break beam sensor (like the picture from dougp) ?

  • what is the added value to have a capacitor ?