You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have tried putting in temperature = temperature * 9/5.0 + 32 but dont know where exactly it goes.
I keep breaking the script when i put it in
any help is greatly appreciated!
The text was updated successfully, but these errors were encountered:
In Python/28_humiture.py look for this chunk (at the complete bottom):
def main():
print ("Raspberry Pi wiringPi DHT11 Temperature test program\n")
while True:
result = read_dht11_dat()
if result:
humidity, temperature = result
print ("humidity: %s %%, Temperature: %s C`" % (humidity, temperature))
time.sleep(1)
Replace it by this:
def main():
print ("Raspberry Pi wiringPi DHT11 Temperature test program\n")
while True:
result = read_dht11_dat()
if result:
humidity, temperature = result
print ("humidity: %s %%, Temperature: %s C`" % (humidity, temperature * 9/5.0 + 32)) 👈
time.sleep(1)
i have tried putting in temperature = temperature * 9/5.0 + 32 but dont know where exactly it goes.
I keep breaking the script when i put it in
any help is greatly appreciated!
The text was updated successfully, but these errors were encountered: