DS18B20
Overview
The DS18B20 is a digital temperature sensor that provides 9-bit to 12-bit Celsius temperature measurements. It communicates over a 1-Wire bus, allowing multiple sensors to coexist on a single data line while being powered directly from the data line itself via parasite power. This sensor is highly recognizable for its unique 64-bit serial code which enables precise tracking in multi-node environments.
Why Choose This Part
The 1-Wire interface simplifies cabling by requiring only one data line and ground for communication. It features a high accuracy of 0.5 degrees Celsius across a wide operating range and includes nonvolatile user-definable alarm settings. The integrated EEPROM allows for permanent storage of sensor identification or threshold data directly on the device.
Applications
Getting Started
To interface with the DS18B20, use a 4.7k ohm pull-up resistor between the DQ and VDD lines. It is widely supported by the Arduino OneWire and DallasTemperature libraries, making it compatible with almost any MCU platform. For hardware prototyping, the TO-92 package fits standard breadboards and provides easy access to the three-pin interface.
DS18B20 Family
| Part Number | Difference | Stock |
|---|---|---|
| DS18B20+ (Analog Devices / Maxim Integrated) | + | 8,058 |
| DS18B20-PAR+T&R (Analog Devices / Maxim Integrated) | PAR+T&R | 1,834 |



