Added Code for temp sensor

code lifted from adafruit