adding temperature sensor code