Waterproof DS18B20

Waterproof stainless steel probe housing a Maxim DS18B20 digital thermometer that reports temperature from -55 to +125 C over a single 1-Wire data line.

Waterproof DS18B20: Digital temperature probe

What is the Waterproof DS18B20?

The Waterproof DS18B20 is a sealed temperature probe built around the Maxim/Analog Devices DS18B20 1-Wire digital thermometer. The sensor die sits inside a stainless steel tube on a flexible lead, so it can be dropped directly into liquids, soil, or outdoor enclosures. It measures from -55 to +125 C and is accurate to +/-0.5 C across the -10 to +85 C range.

Communication uses the 1-Wire protocol on the single DATA (DQ) line. Resolution is programmable at 9, 10, 11, or 12 bits, where 12-bit mode resolves 0.0625 C and takes up to 750 ms per conversion. Every DS18B20 carries a unique factory-programmed 64-bit ROM address, so many probes can share one data pin and be read individually by address.

The three flying leads are typically red (3-5 V power), blue or black (ground), and yellow or white (DATA). The device can also run in parasite-power mode, drawing its energy from the data line, though a normal three-wire hookup is more forgiving. On-chip TH and TL alarm registers can flag out-of-range readings without host polling.

Waterproof DS18B20 pinout

PinFunctionType
VCC Red: 3-5VPowerPower in
GND Blue/Black: GNDPowerPower in
DATA Yellow/White: DATA (DQ)1-Wire DQBidirectional (GPIO)

Specifications

Operating voltage
3.3 V (max 5.5 V)
Interface
1-Wire
Dimensions
78 × 14 × 68 mm

Verified from the Tinkered component library · Adafruit / Maxim Integrated.

Circuit requirements

  • Supply the red lead with 3.0 to 5.5 V and tie the blue/black lead to ground.
  • The yellow/white DATA (DQ) line requires a 4.7 kOhm pull-up resistor to VCC; the bus will not communicate without it.
  • Logic levels follow the supply rail, so the probe works directly with both 3.3 V and 5 V microcontrollers.
  • Multiple probes can share one DATA pin because each has a unique 64-bit ROM address; a single 4.7 kOhm pull-up serves the whole bus.
  • A 12-bit conversion can take up to 750 ms, so wait for the conversion to finish before reading the result.
  • Parasite-power mode (DATA and GND only) is possible but needs a strong pull-up held high during conversion; a dedicated VCC connection is more reliable, especially with several probes.

Board compatibility

The Waterproof DS18B20 connects to any of the microcontrollers supported in Tinkered. Mind the 3.3 V logic level on 3.3 V boards.

Common Waterproof DS18B20 mistakes

Omitting the 4.7 kOhm pull-up

The 1-Wire bus is open-drain and idles high through an external resistor. Without a 4.7 kOhm pull-up from DATA to VCC, reads return 85 C (the power-on default) or -127 C, which looks like a dead sensor.

Reading before the conversion completes

A 12-bit conversion needs up to 750 ms. Requesting the temperature immediately after triggering it returns a stale or default value. Either wait the full conversion time or poll the bus until the device signals it is done.

Confusing the wire colors

Cable coloring is not universal. Many probes use blue for ground, but some batches use black for ground and reserve another color for DATA. Verify against the probe's own labeling before wiring, since swapping GND and DATA prevents communication.

Assuming parasite power just works

Parasite power omits the VCC wire but demands a strong pull-up that clamps the bus high throughout every conversion. With long cables or multiple probes it becomes unreliable. Use the normal three-wire connection unless pins are truly scarce.

Hardcoding a single device on a shared bus

Because each probe has its own 64-bit ROM address, code that assumes one sensor breaks when a second is added. Enumerate the addresses on the bus and target each device explicitly instead of relying on a skip-ROM broadcast.

Waterproof DS18B20 datasheet

Official Waterproof DS18B20 datasheetAdafruit / Maxim Integrated

Popular Waterproof DS18B20 projects

Sous vide and water bath controller

The waterproof tip sits in the bath while the DS18B20 holds a set temperature, driving a heater relay from the reading.

Aquarium and fish tank monitor

Submerge the sealed probe to log tank temperature and trigger alerts when it drifts outside a safe band.

Soil and ground temperature logger

Bury the stainless probe to record root-zone or ground temperature for gardening, composting, or greenhouse control.

Fermentation and brewing tracker

Clamp the probe to a fermenter or mash tun to watch temperature through the process and keep it in range.

Multi-zone temperature network

Chain several probes on one data pin, each addressed by its unique ROM code, to map temperatures across rooms or equipment.

Build with the Waterproof DS18B20.

Drop the Waterproof DS18B20 into a circuit, write firmware, and simulate it in your browser, then deploy to real hardware. All in one editable Tinkered project.