Skip to content
Temperature & Humidity

DS18B20 Waterproof Temperature Probe

1-Wire waterproof probe for liquids, soil, and outdoor use.

The DS18B20 is a digital temperature sensor on the 1-Wire bus, packaged in a stainless-steel waterproof probe on a cable. Each chip has a unique factory-burned 64-bit ROM address, which is what makes 1-Wire special — you can chain dozens of these probes on a single data pin and read each one individually by address, no extra wiring per sensor.

It's the default choice for aquariums, sous-vide cookers, soil/outdoor temperature logging, and any project needing a sealed probe rather than a bare board. The catch that trips people up is the pull-up resistor: the DQ (data) line needs a 4.7kΩ resistor to VCC or the bus will float and reads will fail or return 85°C (the power-on reset value) or -127°C (a read error). There's also a rarely-needed "parasite power" mode (VCC tied to GND, power drawn from the data line) — stick to standard 3-wire power unless you have a specific reason to save a wire.

Specifications

Interface1-Wire (Dallas/Maxim protocol), unique 64-bit ROM address per chip
Operating voltage3.0–5.5V
Temperature range−55°C to 125°C
Accuracy±0.5°C (−10°C to 85°C range)
Resolution9–12 bit, configurable (0.5°C to 0.0625°C steps)
Conversion time750ms at 12-bit resolution (shorter at lower resolution)
Probe cable length~1m (common), stainless steel sheath, IP67-rated tip
Multi-drop capabilityMultiple probes can share one data pin, addressed individually by ROM code

Pinout

PinNameDescription
1GNDGround — black wire on waterproof probe versions
2DQData — yellow wire; needs a 4.7kΩ pull-up resistor to VCC
3VCCPower, 3.0–5.5V — red wire

Standard (non-parasitic) wiring: VCC to 3.3V/5V, GND to ground, DQ to your data pin with a 4.7kΩ resistor between DQ and VCC. Multiple probes can share the same DQ line — the library discovers each one by its unique ROM address.

Variants

VariantTemp rangeHum rangeAccuracyProtocolPrice
DS18B20 waterproof probe~$2–4
DS18B20 TO-92 (bare)~$0.50–1
DS18B20 breakout board~$1–2

Board Integration

Library

OneWire + DallasTemperatureby Paul Stoffregen / Miles Burton

Arduino IDE → Library Manager → install both "OneWire" and "DallasTemperature"

Wiring

Component pinBoard pinNote
VCC5V
GNDGND
DQD2 (+ 4.7kΩ resistor to 5V)

Code

C++

Notes

Any digital pin works for DQ. Don't forget the 4.7kΩ pull-up — this is the #1 cause of "85.00" or "-127.00" readings.