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
| Interface | 1-Wire (Dallas/Maxim protocol), unique 64-bit ROM address per chip |
| Operating voltage | 3.0–5.5V |
| Temperature range | −55°C to 125°C |
| Accuracy | ±0.5°C (−10°C to 85°C range) |
| Resolution | 9–12 bit, configurable (0.5°C to 0.0625°C steps) |
| Conversion time | 750ms at 12-bit resolution (shorter at lower resolution) |
| Probe cable length | ~1m (common), stainless steel sheath, IP67-rated tip |
| Multi-drop capability | Multiple probes can share one data pin, addressed individually by ROM code |
Pinout
| Pin | Name | Description |
|---|---|---|
| 1 | GND | Ground — black wire on waterproof probe versions |
| 2 | DQ | Data — yellow wire; needs a 4.7kΩ pull-up resistor to VCC |
| 3 | VCC | Power, 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
| Variant | Temp range | Hum range | Accuracy | Protocol | Price |
|---|---|---|---|---|---|
| DS18B20 waterproof probe | ~$2–4 | ||||
| DS18B20 TO-92 (bare) | ~$0.50–1 | ||||
| DS18B20 breakout board | ~$1–2 |