LabWired The easy way to build hardware
I²C device

AHT20 Temp/Humidity

The AHT20 Temp/Humidity is an I²C device in the LabWired part catalog. Its catalog type is aht20. It connects to the MCU over I²C at the default address 0x38. The catalog gives a supply range of 2–5.5 V. It has 4 pins. A registered peripheral model runs in the engine: the firmware talks to it over the real bus and gets device-accurate responses.

AHT20 Temp/Humidity in LabWired
Rendered by the matching LabWired editor component.

Key facts

CategoryI²C devices
Catalog typeaht20
InterfaceI²C
Default I²C address0x38 (56 decimal)
Supply range2–5.5 V
Pins4
DatasheetASAIR AHT20 humidity and temperature sensor datasheet

What LabWired simulates

What is simulated

Simulated device model

How it was validated

Built from the datasheet

AHT20 Temp/Humidity pinout

PinElectrical typeFunction
VCC Power input Supply
GND Power input Supply
SDA Open-drain I²C data (SDA)
SCL Open-drain I²C clock (SCL)

How to simulate the AHT20 Temp/Humidity in LabWired

  1. Open the Playground at app.labwired.com and place an MCU board.
  2. Add the AHT20 Temp/Humidity (catalog type aht20).
  3. Connect VCC and GND to the supply and ground of the board. Use a supply inside the catalog range of 2–5.5 V.
  4. Connect SDA and SCL to the I²C data and clock pins of the board.
  5. Run the firmware. It finds the part on the I²C bus at 0x38 and reads and writes it as on hardware.

Related I²C devices

All I²C devices · All parts

Further reading

Modelled from ASAIR AHT20 humidity and temperature sensor datasheet.