Temp and humidity

DHT11, DHT22/AM2302, and DHT20/AHT20 sensors solve the same broad job, but only some are acceptable substitutes in the same circuit.

Can I swap these?

Pick the board you have - we'll show what we know about swapping it.

Known swap options (1)

General board checks (5)
  • Is the target circuit single-data-line DHT or I2C? Do not cross that boundary without redesigning wiring and firmware.
  • Confirm supply voltage, board logic level, pull-up/module assumptions, and sensor read interval.
  • Compare pin order, cable/connector, mikroBUS/Grove/Gravity footprint, and physical package.
  • Set the correct library sensor type, or switch libraries entirely for DHT20/AHT20.
  • Use the vendor source URL and datasheet as the final authority before production.

Parts in this group

DHT22 / AM2302

DHT20 / AHT20

Other matching parts