Working implementation of the temperature conversion.