我的代码是temperature humidity sensor,我附加到连接到树莓派传感器的grovepi传感器。如果可能的话,你可以告诉我如何将它转换为摄氏度。谢谢
import grovepi
sensor = 4
while True:
try:
[temp,humidity] = grovepi.dht(sensor,1)
print "temp=", temp, "humidity =", humidity
except IOError:
print "Error"