Proximity sensor for agricultural machinery, Photosensor in pharmaceutical packaging