added temp sensor code