I have configured temperature sensor with intel edison. I am trying to read temperature sensor values using following python code
import mraa
import time
import sys
import math
tmp = mraa.Gpio(2)
tmp.dir(mraa.DIR_IN)
i=0
while i<100:
print "Let's talk about Temperature %s." % tmp.read()
time. sleep(3)
i+=1
exit()
But this code is return always 0 as reading value.
I am new to intel edison and python. So any help will be appreciating. Thanks