added the temp sensor code to temp.py - ready for testing