what is function of temperature