Added a function to return temperature as an integer.