Industrial photosensor calibration