Skip to content

DHT11 SENSOR

Jaume Olivé Petrus edited this page Jan 19, 2017 · 38 revisions

Comments
Datasheet [Datasheet] (http://www.micropik.com/PDF/dht11.pdf)
Interface GPIO 1 pin
Provides temperature celsius degrees
humidity % relative humidity

Example code

s1 = sensor.setup("DHT11", pio.GPIO4)

s1:acquire()

temperature = s1:read("temperature")
humidity = s1:read("humidity")
Clone this wiki locally