Implemented Calibration of the light procedure in sensors