Bare DHT11 sensor at a three-quarter angle, light-blue vented housing with 15 grille holes and four straight silver leads

DHT11 Temperature and Humidity Sensor - Bare 4-Pin, 3.3V/5V

$3.29 NZD
Save 6% at 3+
Skip to product information
SKU: NZE-DHT11-4PIN

DHT11 Temperature and Humidity Sensor - Bare 4-Pin, 3.3V/5V

$3.29 NZD
Availability:
Order before 7:30am for same-day dispatch Dispatch 7 days a week, excluding public holidays

NZ Post: 1-2 days urban · 2-4 days rural

No GST added (we're not GST registered). Shipping from $5.99 urban / $9.99 rural, or free pick-up in Te Awamutu.

Buy more, pay less Prices shown are per unit. Add enough of this item and the lower rate applies on its own at checkout. There is no code to enter and you do not need to buy a pack. Choosing a tier here just sets the quantity for you. Larger quantities go out in the same bag, so packing, handling and postage cost us less per unit. We pass that saving straight on to you, so you can buy more for less.

Easy 30-day returns · 12-month warranty

Add these too
Add $66.00 for Free Urban delivery ($88.00 for Rural)
Urban $66 Rural $88

A 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.

Specifications

SensorDHT11, single-wire digital output
Pinout1 VCC, 2 DATA, 3 NC, 4 GND (grille towards you, leads down)
Supply3.3 to 5.5V, works on 3.3V and 5V boards
Humidity20 to 80% RH, ±5% RH, 1% steps
Temperature0 to 50°C, ±2°C, 1°C steps
Read intervalEvery 2 seconds or slower
Data lineNeeds a 4.7k to 10k pull-up to VCC (not included)
SizeAbout 12 x 15.5 x 5.5 mm, leads about 8 mm
Lead pitch2.54 mm, breadboard friendly

Datasheets

What's in the box

1×
DHT11 temperature and humidity sensor, bare 4-pin

Loose sensor in an anti-static bag. The pull-up resistor and wires are not included.

Great for

Logging room temperature and humidity with an ESP32 and Home Assistant
A first temperature and humidity sketch on an Arduino Uno
Turning on a fan or dehumidifier relay when a room gets damp
Keeping an eye on a cupboard, garage or sheltered shed
Classroom and STEM sensor projects on a breadboard
Building your own sensor board on stripboard or a PCB

Wiring & getting started

  1. Find the pins

    Hold 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.

  2. Power it from your board's logic voltage

    Connect 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.

  3. Add the pull-up

    Fit 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 600pc resistor kit has both values. If you would rather skip the resistor, our DHT22 module has the pull-up fitted.

  4. Read it

    In 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.

Note: 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.

Related guide DHT22 vs DS18B20 vs BMP280: Which Sensor Should You Choose?Choose a sensor for air temperature, humidity, remote temperature or pressure. Compare DHT22, DS18B20 and BMP280, with practical wiring and placement checks.

Frequently Asked Questions

Answers to the questions buyers ask most.

Do I need a pull-up resistor?
Yes. This is the bare sensor, so fit a 4.7k to 10k resistor between DATA (pin 2) and VCC (pin 1). Without it you get failed reads or nan. If you would rather not add one, our DHT22 module has the pull-up fitted on its board.
What is pin 3 for?
Nothing. Pin 3 is not connected inside the sensor, so leave it free or solder it to an unused pad for strength. Only pins 1 (VCC), 2 (DATA) and 4 (GND) need wiring.
Will it work with an ESP32 or Raspberry Pi on 3.3V?
Yes. Power VCC from 3.3V and connect the pull-up to 3.3V too, so the data line stays at 3.3V logic. Keep the wires to the sensor under about 1 m at 3.3V. On an Arduino Uno or Nano use 5V for both.
Why do I get nan or failed to read?
Usually it is one of four things: no pull-up on DATA, DATA wired to a different pin from the one in your sketch, the sensor type set to DHT22 instead of DHT11, or reading more often than every 2 seconds. The first reading after power-up can also be stale, so ignore it.
Should I choose the DHT11 or the DHT22?
The DHT11 suits room monitoring and learning projects: 0 to 50°C at ±2°C and 20 to 80% RH at ±5%, in whole numbers. For outdoor temperatures, readings to 0.1, or the full 0 to 100% RH range, choose our DHT22 module, which also has the pull-up fitted. Both use the same wiring and library.
Does it read decimals?
No. The DHT11 reports whole degrees and whole percent humidity, so a library shows values like 21.0°C and 54.0%.
Can I use it outside?
Only in a sheltered spot. The housing is vented, not sealed, so keep it out of rain, direct sun and condensation. It is rated from 0°C, so it is not suited to frosty outdoor readings.
How long can the wires be?
Up to about 20 m on 5V with a 5.1k pull-up and good quality cable, and about 1 m on 3.3V. For longer runs use twisted or shielded cable and keep it away from mains and motor wiring.

Have a Question About This Product?

Send it through and we will get back to you by email.

Why Buy from NZN

Useful parts, fair prices and someone local to help.

I'm Lukas, an engineering student and maker based in Te Awamutu. NZN grew out of a CNC build that dragged on for months because every missing cable, bolt or electronic part meant another overseas order. I started the shop so Kiwi makers can spend more time building and less time waiting for the next parcel.

  • Stocked here in New Zealand

    Orders are picked and packed in Te Awamutu and dispatched within 24 hours every day, excluding public holidays. NZ Post target delivery is 1-2 days urban and 2-4 days rural. In Te Awamutu and Kihikihi you can choose local delivery at checkout: same day if you order before 8am, otherwise next day.

  • Fair prices, clearly shown

    Prices are kept competitive and quantity discounts are shown upfront. Free delivery starts at $66 for urban addresses and $88 for rural addresses.

  • 30-day returns and 12-month warranty

    Get in touch if something is not right and we will help sort it.

  • Practical product support

    Ask a product question and get help from a real person in New Zealand who knows the range.

You may also like