IR sensor for arduino

You want a beam-break detector, one at the bottom and one at the top. Basically
an IR transmitter one side and receiver the other.

You want something like this kit but with a logic output and no buzzer: http://www.maplin.co.uk/p/mk120-ir-beam-break-detector-ll64u