Temperature + humidity AHT20 with TinkerPie
Small, fast and accurate. Also fits AHT10 and AHT21.
| Type | Smart sensors (I2C) |
|---|---|
| Connect to | SENSOR port · 0x38 |
| Gives | °C and % RH |
| Simulator | Yes: a control appears under the simulated board |
How to wire it
Plug into any SENSOR 1-4 port (SDA, SCL, 3.3 V, GND). Each type has a fixed I2C address, so different types can share the bus.
Code
In blocks: Accessories category in TinkerPie Studio. As code:
// JavaScript
sensors.ahtTemperature()
sensors.ahtHumidity()
// Arduino C++
sensors::ahtTemperature()
sensors::ahtHumidity()