added error handling to temperature checker.