Industrial proximity sensor applications, Photosensor for packaging