Philo has developed a new NTX LEGO sensor that is worth taking a look at.

“I built this proof of concept of a light barrier using NXT light sensor and an optic fiber. Any small object passing between the end of the fiber and light sensor phototransistor can be easily detected, even if they have different […]

More: continued here