Added temperature sensor code