{"product_id":"dht11-temperature-humidity-sensor-bare-4-pin","title":"DHT11 Temperature and Humidity Sensor - Bare 4-Pin, 3.3V\/5V","description":"\u003cdiv class=\"nznpd\"\u003e\n\u003cdiv class=\"nznpd__lead\"\u003e\n\u003cp class=\"nznpd__intro\"\u003eA bare DHT11 temperature and humidity sensor with 4 pins at 2.54 mm, so it fits a breadboard, stripboard or your own PCB. It sends both readings over one data wire to an Arduino, ESP32 or Raspberry Pi, on 3.3V or 5V. As a bare part it needs a pull-up resistor on the DATA pin, and pin 3 is not connected.\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\u003eDHT11, single-wire digital output\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003ePinout\u003c\/span\u003e\u003cstrong\u003e1 VCC, 2 DATA, 3 NC, 4 GND (grille towards you, leads down)\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eSupply\u003c\/span\u003e\u003cstrong\u003e3.3 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\u003e20 to 80% RH, ±5% RH, 1% steps\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eTemperature\u003c\/span\u003e\u003cstrong\u003e0 to 50°C, ±2°C, 1°C steps\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eRead interval\u003c\/span\u003e\u003cstrong\u003eEvery 2 seconds or slower\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eData line\u003c\/span\u003e\u003cstrong\u003eNeeds a 4.7k to 10k pull-up to VCC (not included)\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eSize\u003c\/span\u003e\u003cstrong\u003eAbout 12 x 15.5 x 5.5 mm, leads about 8 mm\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eLead pitch\u003c\/span\u003e\u003cstrong\u003e2.54 mm, breadboard friendly\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\/DHT11-Temperature-Humidity-Sensor-Datasheet-v1.pdf?v=1792619531\" target=\"_blank\" rel=\"noopener\" aria-label=\"Download the DHT11 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\u003eDHT11 temperature and humidity sensor, bare 4-pin\u003c\/strong\u003e\u003cp\u003eLoose sensor in an anti-static bag. The pull-up resistor 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\"\u003eLogging room temperature and humidity with an ESP32 and Home Assistant\u003c\/div\u003e\n\u003cdiv class=\"nznpd__use\"\u003eA first temperature and humidity sketch on an Arduino Uno\u003c\/div\u003e\n\u003cdiv class=\"nznpd__use\"\u003eTurning on a fan or dehumidifier relay when a room gets damp\u003c\/div\u003e\n\u003cdiv class=\"nznpd__use\"\u003eKeeping an eye on a cupboard, garage or sheltered shed\u003c\/div\u003e\n\u003cdiv class=\"nznpd__use\"\u003eClassroom and STEM sensor projects on a breadboard\u003c\/div\u003e\n\u003cdiv class=\"nznpd__use\"\u003eBuilding your own sensor board on stripboard or a PCB\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 grille towards you and the leads pointing down. From left to right the pins are 1 VCC, 2 DATA, 3 NC and 4 GND. Pin 3 is not connected inside, so leave it free.\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\u003eConnect VCC to 5V on an Arduino Uno or Nano, or to 3.3V on an ESP32 or Raspberry Pi, and GND to GND. On 3.3V keep the wires to the sensor under about 1 m.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cdiv\u003e\n\u003cstrong\u003eAdd the pull-up\u003c\/strong\u003e\u003cp\u003eFit a 4.7k to 10k resistor between DATA and VCC, then connect DATA to a digital pin, such as D2 on an Arduino or GPIO4 on an ESP32. Our \u003ca href=\"\/products\/metal-film-resistor-assortment-kit-600pc-30-values-10%CF%89-1m\"\u003e600pc resistor kit\u003c\/a\u003e has both values. If you would rather skip the resistor, our \u003ca href=\"\/products\/dht22-am2302-temperature-humidity-sensor\"\u003eDHT22 module\u003c\/a\u003e has the pull-up fitted.\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 DHT sensor library, set the type to DHT11 and open the DHTtester example. In ESPHome use the dht platform with model DHT11. Read every 2 seconds or slower, and ignore the first reading after power-up.\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 housing is vented, not sealed. Keep it out of rain, direct sun and condensation, and away from regulators or other warm parts, which push the temperature up and the humidity down.\u003c\/p\u003e\n\u003c\/div\u003e\n","brand":"NZN Electronics","offers":[{"title":"Default Title","offer_id":67684748132448,"sku":"NZE-DHT11-4PIN","price":3.29,"currency_code":"NZD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0664\/6127\/0112\/files\/dht11-temperature-humidity-sensor-hero.png?v=1792619794","url":"https:\/\/www.nznelectronics.co.nz\/products\/dht11-temperature-humidity-sensor-bare-4-pin","provider":"NZN Electronics","version":"1.0","type":"link"}