Error handling on the method that fetches the tempraturs