obtain the temperature