DHT11 Interfacing with Raspberry Pi 3 and Python

import sys
import Adafruit_DHT
#import Adafruit_Python_DHT
import time
while True:
    humidity,temperature = Adafruit_DHT.read_retry(11,4)
    print('Temp:{0:0.1f} C Humidity:{1:0.1f}%',format(temperature,humidity))
    time.sleep(2)
You can leave a response, or trackback from your own site.
Leave a Reply to the article

Learning & Certifications
Follow Us
Facebook Icon   Linked In Icon   Twitter Icon  
Validation and Recognition

Valid CSS! Valid HTML5!          Protected by Copyscape