Added try for second temperature sensor
corrected syntax error