Temperature + humidity DHT22 with TinkerPie
The white, more accurate sibling of the DHT11.
| Type | Timing sensors |
|---|---|
| Connect to | any accessory pin |
| Gives | °C and % RH, more precise |
| Simulator | Use it on the real 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, DhtType.DHT22)
// Arduino C++
sensors::dhtTemperature(Pin::S1, DhtType::DHT22)