DS18B20-compatible TO-92 temperature sensor, flat face marked 18B20 with three straight tinned leads

DS18B20-Compatible Digital Temperature Sensor - TO-92, 1-Wire

$1.99 NZD
Save 6% at 3+
Skip to product information
SKU: NZE-DS18B20-TO92

DS18B20-Compatible Digital Temperature Sensor - TO-92, 1-Wire

$1.99 NZD
Availability:
Order before 7:30am for same-day dispatch 7-day dispatch, excluding public holidays

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

Shipping from $5.99 urban / $9.99 rural.

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

Free Urban delivery on orders over $66
Urban $66 Rural $88

A bare DS18B20-compatible digital temperature sensor in a three-lead TO-92 package. It sends readings over a single 1-Wire data line, so one pin on an Arduino, ESP32 or Raspberry Pi can read several sensors. Use it on a breadboard or PCB, or seal it into your own probe. It needs a 4.7k pull-up resistor on the data line.

Specifications

SensorDS18B20-compatible, 1-Wire
PackageTO-92, 3 straight leads
PinoutGND, DQ, VDD (flat face towards you, leads down)
Supply3.0 to 5.5V, works on 3.3V and 5V boards
Resolution9 to 12 bit, 0.0625°C steps at 12 bit
Conversion timeUp to 750 ms at 12 bit
Data lineNeeds a 4.7k pull-up to the supply (not included)
Measuring range-55 to +125°C (DS18B20 family rating)
SizeBody about 4.7 x 5 mm, leads about 15 mm at 1.27 mm pitch

Datasheets

What's in the box

1×
DS18B20-compatible TO-92 temperature sensor

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

Great for

Logging room or enclosure temperature with an ESP32
Reading several temperature points from one Arduino pin
Building your own sealed temperature probe
Switching a fan or heater from a thermostat sketch
Watching heatsink or battery pack temperature
Raspberry Pi temperature readings over 1-Wire

Wiring & getting started

  1. Find the pins

    Hold the sensor with the flat face towards you and the leads pointing down. From left to right the pins are GND, DQ (data) and VDD.

  2. Power it from your board's logic voltage

    Connect VDD to 5V on an Arduino Uno or Nano, or to 3.3V on an ESP32 or Raspberry Pi. Connect GND to GND. Swapping VDD and GND makes the sensor hot quickly, so check before powering up.

  3. Add the 4.7k pull-up

    Fit a 4.7k resistor between DQ and VDD, then connect DQ to a digital pin, such as D2 on an Arduino or GPIO4 on an ESP32 or Pi. Our DS18B20 adapter module has the pull-up fitted and a screw terminal for the leads.

  4. Read it

    Install the OneWire and DallasTemperature libraries in the Arduino IDE and open the Simple example. Allow the full conversion time, up to 750 ms at 12 bit, before each reading.

Note: This is a DS18B20-compatible sensor. It uses the same pinout, commands and libraries, but compatible parts can differ in accuracy and conversion timing. Use normal three-wire power rather than parasite power, and check it against a known thermometer if accuracy matters. For wet or outdoor use, see our DS18B20-compatible waterproof temperature probe.

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. Fit a 4.7k resistor between DQ and VDD, so the data line idles high. One resistor per data line is enough, even with several sensors. Our DS18B20 adapter module has the 4.7k pull-up already fitted.
Will it work with an ESP32 or Raspberry Pi on 3.3V?
Yes. Power VDD from 3.3V and connect the pull-up to 3.3V as well, so the data line stays at 3.3V logic. On an Arduino Uno or Nano use 5V for both.
Is it an original DS18B20?
No. It is a DS18B20-compatible sensor with the same pinout, 1-Wire commands and Arduino libraries. Compatible parts can differ in accuracy and conversion timing, so allow the full conversion time and check readings against a known thermometer if accuracy matters.
Can I use parasite power with two wires?
We suggest normal three-wire power with VDD connected to your supply. Parasite power is less dependable with compatible sensors, especially on long cables.
Is it waterproof?
No, it is a bare chip with exposed leads. Seal the sensor and joints with heat-shrink or potting for damp places, or use our DS18B20-compatible waterproof probe.
Why does it read -127 or 85 degrees?
-127 means the library found no sensor: check the pull-up, the pin order and the pin number in your sketch. 85 is the power-up value, read before a conversion finished: wait up to 750 ms at 12 bit before reading.
How many sensors can share one pin?
Several. Each sensor has its own 64-bit address, so you can wire them in parallel on the same three lines and read each one by address. Keep the wiring tidy and use external power on longer runs.

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