Updates temperature calculation.