
Beginner4/7/2026- Author: IoTSpark Maker
ESP32 + DS18B20: Waterproof 1-Wire Temperature Sensor (Quick Test Sample Code)
The DS18B20 (Maxim/Dallas) is a digital temperature sensor using the standard Dallas 1-Wire protocol — different from the proprietary protocol used by the DHT11/DHT22.
ds18b20nhiet-do1-wire
4 steps3 components
The DS18B20 (Maxim/Dallas) is a digital temperature sensor using the standard Dallas 1-Wire protocol — different from the proprietary protocol used by the DHT11/DHT22. Its biggest strength: multiple DS18B20 sensors can share a single data wire, each with its own unique 64-bit address for identification. The waterproof stainless-steel-probe version is commonly used to measure water, soil, or wet-environment temperatures.