{"product_id":"dht20-i2c-temperature-humidity-sensor","title":"DHT20 Temperature \u0026 Humidity Sensor - I2C, 3.3V or 5V, 4-Pin","description":"\u003cdiv class=\"nznpd\"\u003e\n\u003cdiv class=\"nznpd__lead\"\u003e\n\u003cp class=\"nznpd__intro\"\u003eThe DHT20 is a calibrated temperature and humidity sensor in the familiar 4-pin DHT housing, with a digital I2C output instead of the DHT11's single-wire signal. It runs on 3.3V or 5V, sits at I2C address 0x38 and reads with standard Arduino, ESP32, ESPHome and Raspberry Pi libraries. If you want a single data wire instead, see our \u003ca href=\"\/products\/dht22-am2302-temperature-humidity-sensor\"\u003eDHT22 \/ AM2302 module\u003c\/a\u003e with the pull-up fitted, or the low-cost \u003ca href=\"\/products\/dht11-temperature-humidity-sensor-bare-4-pin\"\u003ebare DHT11\u003c\/a\u003e.\u003c\/p\u003e\n\u003c\/div\u003e\n\n\u003csection class=\"nznpd__block\"\u003e\n\u003ch3 class=\"nznpd__h\"\u003eSpecifications\u003c\/h3\u003e\n\u003cdiv class=\"nznpd__specs\"\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eSensor\u003c\/span\u003e\u003cstrong\u003eDHT20, AHT20-class chip, factory calibrated\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eInterface\u003c\/span\u003e\u003cstrong\u003eI2C, fixed address 0x38, up to 400 kHz\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eSupply\u003c\/span\u003e\u003cstrong\u003e2.2 to 5.5V, works on 3.3V and 5V boards\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eHumidity\u003c\/span\u003e\u003cstrong\u003e0 to 100% RH, ±3% RH typical\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eTemperature\u003c\/span\u003e\u003cstrong\u003e-40 to 80°C, ±0.5°C typical\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003ePinout\u003c\/span\u003e\u003cstrong\u003e1 VDD, 2 SDA, 3 GND, 4 SCL (grille towards you, pins down)\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003ePull-ups\u003c\/span\u003e\u003cstrong\u003e4.7k on SDA and SCL if your bus has none (not included)\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eSize\u003c\/span\u003e\u003cstrong\u003e12.6 x 16.1 x 5.8 mm body, 7.2 mm pins at 2.54 mm pitch\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eReading rate\u003c\/span\u003e\u003cstrong\u003eOne reading every 2 seconds or slower\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/section\u003e\n\n\u003csection class=\"nznpd__block\"\u003e\n\u003ch3 class=\"nznpd__h\"\u003eDatasheets\u003c\/h3\u003e\n\u003cdiv class=\"nznpd__ds\"\u003e\n\u003ca class=\"nznpd__dsbar\" href=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0664\/6127\/0112\/files\/DHT20-I2C-Temperature-Humidity-Sensor-Datasheet-v1.pdf?v=1792619435\" target=\"_blank\" rel=\"noopener\" aria-label=\"Download the DHT20 I2C temperature and humidity sensor datasheet (PDF)\"\u003e\n\u003csvg width=\"20\" height=\"20\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\u003e\u003cpath d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z\"\u003e\u003c\/path\u003e\u003cpolyline points=\"14 2 14 8 20 8\"\u003e\u003c\/polyline\u003e\u003c\/svg\u003e\n\u003cspan\u003eFull technical datasheet\u003c\/span\u003e\n\u003cspan class=\"nznpd__dsmeta\"\u003ePDF\u003csvg width=\"17\" height=\"17\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\u003e\u003cpath d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"\u003e\u003c\/path\u003e\u003cpolyline points=\"7 10 12 15 17 10\"\u003e\u003c\/polyline\u003e\u003cline x1=\"12\" y1=\"15\" x2=\"12\" y2=\"3\"\u003e\u003c\/line\u003e\u003c\/svg\u003e\u003c\/span\u003e\n\u003c\/a\u003e\n\u003c\/div\u003e\n\u003c\/section\u003e\n\n\u003csection class=\"nznpd__block\"\u003e\n\u003ch3 class=\"nznpd__h\"\u003eWhat's in the box\u003c\/h3\u003e\n\u003cdiv class=\"nznpd__included\"\u003e\n\u003cdiv class=\"nznpd__qty\"\u003e1×\u003c\/div\u003e\n\u003cdiv\u003e\n\u003cstrong\u003eDHT20 temperature and humidity sensor\u003c\/strong\u003e\u003cp\u003eBare 4-pin sensor in an anti-static bag. Pull-up resistors and wires are not included.\u003c\/p\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/section\u003e\n\n\u003csection class=\"nznpd__block\"\u003e\n\u003ch3 class=\"nznpd__h\"\u003eGreat for\u003c\/h3\u003e\n\u003cdiv class=\"nznpd__uses\"\u003e\n\u003cdiv class=\"nznpd__use\"\u003eRoom temperature and humidity in Home Assistant via ESPHome\u003c\/div\u003e\n\u003cdiv class=\"nznpd__use\"\u003eUpgrading a DHT11 project to calibrated I2C readings\u003c\/div\u003e\n\u003cdiv class=\"nznpd__use\"\u003eChecking bathroom or wardrobe humidity before mould sets in\u003c\/div\u003e\n\u003cdiv class=\"nznpd__use\"\u003eGreenhouse and seed-raising humidity logging\u003c\/div\u003e\n\u003cdiv class=\"nznpd__use\"\u003eShowing temperature and humidity on an I2C OLED\u003c\/div\u003e\n\u003cdiv class=\"nznpd__use\"\u003eBattery-powered loggers that sleep between readings\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/section\u003e\n\n\u003csection class=\"nznpd__block\"\u003e\n\u003cdiv class=\"nznpd__qs\"\u003e\n\u003ch3\u003eWiring \u0026amp; getting started\u003c\/h3\u003e\n\u003col class=\"nznpd__steps\"\u003e\n\u003cli\u003e\u003cdiv\u003e\n\u003cstrong\u003eFind the pins\u003c\/strong\u003e\u003cp\u003eHold the sensor with the vented grille towards you and the pins pointing down. From left to right the pins are 1 VDD, 2 SDA, 3 GND and 4 SCL. SDA and SCL are not side by side, so check them twice.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cdiv\u003e\n\u003cstrong\u003ePower it from your board's logic voltage\u003c\/strong\u003e\u003cp\u003eOn an Arduino Uno or Nano connect VDD to 5V, SDA to A4 and SCL to A5. On an ESP32 connect VDD to 3.3V, SDA to GPIO21 and SCL to GPIO22. GND goes to GND on both.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cdiv\u003e\n\u003cstrong\u003eAdd pull-ups if the bus needs them\u003c\/strong\u003e\u003cp\u003eIf nothing else on the I2C bus has pull-up resistors, fit 4.7k from SDA to VDD and from SCL to VDD. A 100nF capacitor across VDD and GND, close to the sensor, keeps the supply clean.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cdiv\u003e\n\u003cstrong\u003eRead it\u003c\/strong\u003e\u003cp\u003eIn the Arduino IDE install the DHT20 library by Rob Tillaart, or Adafruit AHTX0, and open its example. In ESPHome use the aht10 platform with variant AHT20. Wait at least 2 seconds between readings.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003c\/div\u003e\n\u003c\/section\u003e\n\n\u003cp class=\"nznpd__note\"\u003e\u003cstrong\u003eNote:\u003c\/strong\u003e The DHT20 uses I2C, so it is not a drop-in swap for a DHT11 or DHT22 in existing code or wiring. Hand solder only, briefly, and give the sensor a day or two in normal room air afterwards before trusting the humidity reading.\u003c\/p\u003e\n\u003c\/div\u003e\n","brand":"ASAIR","offers":[{"title":"Default Title","offer_id":67684747640928,"sku":"NZE-DHT20-I2C","price":4.49,"currency_code":"NZD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0664\/6127\/0112\/files\/dht20-i2c-temperature-humidity-sensor-hero.png?v=1792636796","url":"https:\/\/www.nznelectronics.co.nz\/products\/dht20-i2c-temperature-humidity-sensor","provider":"NZN Electronics","version":"1.0","type":"link"}