DS18B20 waterproof probe
DS18B20 sealed in a steel tube on a 1 m cable.
What is the DS18B20 waterproof probe and what is it used for?
DS18B20 sealed in a steel tube on a 1 m cable. Makers use it for aquariums, soil and water temperature.
A DS18B20 chip sealed in a stainless steel tube, reporting temperature digitally on the 1-Wire bus.
Key specifications
| Sensor spec | Value |
|---|---|
| Measures | Temperature |
| Range | −55 to 125 °C (cable often rated lower) |
| Accuracy | ±0.5 °C from −10 to 85 °C |
| Interface | 1-Wire, needs a 4.7 kΩ pull-up |
| Supply voltage | 3 to 5.5 V |
Pinout
How to use it
Use the OneWire and DallasTemperature libraries. Several probes can share one pin; print their addresses once and label each probe. A 12-bit reading takes 750 ms.
Applications
Builds that use it
Min-max thermometer with LCD
Temperature-controlled 12 V fan
Cold storage door and temperature alarm
Compost pile temperature monitor
Soil temperature at three depths
Wireless indoor-outdoor thermometer
Grain storage temperature and moisture probe
Fish pond aerator with oxygen-risk timer
Alternatives
- NTC 10 kΩ waterproof probeCheaper analog probe
- MAX6675 thermocouple module with K-type probeFor temperatures above 125 °C
Common questions
What is the DS18B20 waterproof probe used for?
In maker projects: aquariums, soil and water temperature.
How does the DS18B20 waterproof probe work?
A DS18B20 chip sealed in a stainless steel tube, reporting temperature digitally on the 1-Wire bus.
What voltage does the DS18B20 waterproof probe need?
3 to 5.5 V.
How do I connect the DS18B20 waterproof probe to an Arduino or ESP32?
1-Wire, needs a 4.7 kΩ pull-up. Pins: Red (VDD, 3 to 5.5 V), Black (Ground), Yellow (DQ data, with a 4.7 kΩ pull-up to VDD (some cables use white or blue)).
What can I use instead of the DS18B20 waterproof probe?
NTC 10 kΩ waterproof probe and MAX6675 thermocouple module with K-type probe.
