Added temp sensor function check