added readTemperature()