Components / Sensors / DS18B20 waterproof probe

DS18B20 waterproof probe

DS18B20 sealed in a steel tube on a 1 m cable.

MeasuresTemperature
Range−55 to 125 °C (cable often rated lower)
Accuracy±0.5 °C from −10 to 85 °C
Interface1-Wire, needs a 4.7 kΩ pull-up
SensorsReviewedMPN DS18B20 probeUsed in 60 projects
DS18B20
In short

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.

How it works

A DS18B20 chip sealed in a stainless steel tube, reporting temperature digitally on the 1-Wire bus.

Key specifications

Sensor specValue
MeasuresTemperature
Range−55 to 125 °C (cable often rated lower)
Accuracy±0.5 °C from −10 to 85 °C
Interface1-Wire, needs a 4.7 kΩ pull-up
Supply voltage3 to 5.5 V

Pinout

RedVDD, 3 to 5.5 V
BlackGround
YellowDQ data, with a 4.7 kΩ pull-up to VDD (some cables use white or blue)

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

Alternatives

Buy at

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.