Temperature measurement and calibration