Temperature sensor code