Arduino mega and bv20 interfacing

Currently I am working on a project based on vending machine but I have no idea how to connect bv20 with Arduino boards. Also I don't know that how bv20 is going to recognise different kind of bills. Please help me to solve this problem asap. I had seen many question on forum but I don't get any with proper connection and code which help to recognise different notes easily.

Thanks for your help in advance.

Link to the hardware?

This is the link for BV20