Proximity sensor for conveyor systems, Photosensor for packaging