TINKER PiEDESIGN IN INDIA

Temperature + humidity DHT11 with TinkerPie

The classic blue weather sensor. Read it at most once a second.

TypeTiming sensors
Connect toany accessory pin
Gives°C and % RH
SimulatorYes: a control appears under the simulated board

How it works

Inside the DHT11 is a humidity-sensing layer and a small thermistor. A tiny chip measures them and sends the result over one data wire with a special timing code, which the TinkerPie firmware decodes.

How to wire it

One or two signal pins on S1-S4 or P10-P13. Studio reads them with precise timing in the board firmware.

Code

In blocks: Accessories category in TinkerPie Studio. As code:

// JavaScript
sensors.dhtTemperature(Pin.S1)
sensors.dhtHumidity(Pin.S1)

// Arduino C++
sensors::dhtTemperature(Pin::S1)
sensors::dhtHumidity(Pin::S1)

Good to know

Projects with the Temperature + humidity DHT11

Weather station on OLEDA DHT11 measures temperature and humidity; an OLED screen shows them with a bar.Sensor projects

Similar modules

More projects to try

Questions

Can I try the Temperature + humidity DHT11 without buying one?

Yes. In TinkerPie Studio the simulator shows a control for it under the board, so you can test your program before you build it.

Why does my DHT11 sometimes show the same value?

The DHT11 only updates about once a second. Read it in a loop with a pause of 1-2 seconds.