Skip to main content

Temperature

DS18B20

1-Wire digital thermometer, ±0.5°C, configurable 9-12 bit resolution — many can share one data pin.

DS18B20 · Analog Devices (Maxim)

Voltage
3–5.5V
Package
TO-92
Pins
3
Interfaces
Digital, 1-Wire
Lifecycle
Active
Footprint
Not verified

Overview

The DS18B20 is a true Dallas/Maxim 1-Wire digital thermometer: each chip has a unique 64-bit ID burned in, so any number of them can share a single data pin (needs the OneWire + DallasTemperature Arduino libraries, not digitalRead()). Sold both as the bare 3-pin TO-92 package and as a "waterproof probe" — a length of cable with the same die potted into a stainless-steel tip — the two are electrically identical, just repackaged differently, so this record covers both. Resolution is configurable from 9 to 12 bits (0.5°C down to 0.0625°C); the guaranteed ±0.5°C accuracy only holds over -10°C to +85°C, and is looser outside that band.

Wiring tip: 1-Wire — needs a 4.7kΩ pull-up on DATA (usually NOT included on bare boards/probes) and the OneWire library

temperatureonewireto-92waterproof-probe-variant

Pins & wiring

01Pin map
3 positions

DS18B20

TO-92

Physical pin order shown left to right.

PowerGroundGPIO

All pins

Selected pin

GND

Ground
Direction
Passive
Full pin table
PinNameRoleDirectionNote
1GroundPassive
2GPIOOpen-drainOneWire data line — needs the OneWire/DallasTemperature library, not digitalRead().
3PowerPowerThis example uses normal (externally-powered) mode; the chip also supports a parasite-power mode that steals power from DQ itself, not modeled separately here.

Wiring examples

5V host (Arduino Uno), normal power mode

arduino-uno pinout →
DS18B20 pinConnects toNote
VDD5V
GNDGND
DQD2

You also need

  • Required4.7 kΩ resistor between DQ and VDDRequired — the 1-Wire bus won't work without it.

3.3V host (ESP32), normal power mode

esp32-devkit-v1 pinout →
DS18B20 pinConnects toNote
VDD3V3
GNDGND
DQGPIO4

You also need

  • Required4.7 kΩ resistor between DQ and VDDRequired — the 1-Wire bus won't work without it.

Specifications

Electrical

Active Supply Current
1.5 mAsrc
Sleep Supply Current
1 µAsrc
Operating Voltage
3 – 5.5 Vsrc

Performance

Measures
temperaturesrc
Range Min
-55°Csrc
Range Max
125°Csrc
Accuracy
±0.5°C (-10°C to +85°C); looser outside that bandsrc
Resolution
9-12 bit configurable (0.5°C to 0.0625°C), default 12-bitsrc
Sampling Rate
1.33 Hzsrc

Interface

Interface
onewiresrc

Physical

Package
TO-92src
Mounting
tht

Thermal

Min Operating Temp
-55 °Csrc
Max Operating Temp
125 °Csrc

Footprint

No independently verified physical footprint is on file for this part yet.

Alternatives

Upgrades

Strictly better on the headline spec, but expect to touch firmware or wiring to actually use the difference.

I2C multi-sensor (adds humidity + pressure) with faster sampling, if you don't need the waterproof-probe form factor.

Compare with DS18B20
  • Interface: onewirei2c

Adds humidity sensing if you need it — trades away 1-wire multi-drop and the waterproof-probe option.

Compare with DS18B20
  • Measures: temperaturetemperature, humidity
  • Interface: onewiredigital (timed, proprietary)

Documents

Datasheets

Frequently asked questions

What voltage does the DS18B20 run at?

The DS18B20 runs at 3–5.5V, per the spec sheet below. Always double-check against the specific board you have — some breakouts add an onboard regulator that changes the usable input range.

How many pins does the DS18B20 have?

The DS18B20 has 3 pins, communicating over Digital, 1-Wire. See the full pinout table in Pins & wiring for each pin's role.

Can I simulate the DS18B20 before ordering hardware?

Not yet — the DS18B20 does not have a live simulation model in Banana Board today, so validate the wiring here and test on real hardware.

Where is the DS18B20 datasheet?

Linked in the Documents section on this page, and cited on every spec that came from it.

Build it, do not just look it up

Describe your circuit in one sentence and Banana Board wires it to these exact pins, validates it, and lays out a fab-ready PCB.

Start building free