HELP! Token dispencer

Hi my name i Nicklas (I am from Denmark, sorry if my english isnt that great)

I am afraid i have bitten over more than i can chew. I am in the midst of a school project, where i need to create a token dispencer. Me and my group are to far into the project to choose another subject. We are total arduino beginners and we really need help. It it not against the school rules to get help, in creating the product as long as you understand and can explain how it was made and how it works. We have already made the dispencer out of metal, all we need is the arduino.

This is how it is suppose to work:

When you put a sodabottle in the machine, a sensor detects it and adds +1 to a veriabel. When the variabel is equal to 5 (when 5 sodabottles have travelled trough the machine) a “Double Action Pneumatic Roundline Cylinder” should push a token out of the machine. It’s an arduino UNO.

We have no idea how to code or wire the arduino.

Here are links to the specific sensor and roundline cylinder:

http://uk.rs-online.com/web/p/pneumatic … s/2638988/

http://uk.rs-online.com/web/p/infrared-sensors/1785730/

Have you sort out this issue? i think you need to call a professional for this, if you still need any kind of assistance then post it here.