Added exception handling to temperature calibration.