Temperature + humidity DHT11 with TinkerPie
The classic blue weather sensor. Read it at most once a second.
| Type | Timing sensors |
|---|---|
| Connect to | any accessory pin |
| Gives | °C and % RH |
| Simulator | Yes: a control appears under the simulated board |
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)