Calibration code for multi range sensor setup