DS18B20 digital thermometer
Read the TO-92 pinout, supply options and conversion timing for a DS18B20, including what changes when several sensors share one wire.

How it works
Each sensor has a unique 64-bit ROM code. Several thermometers can share the same data line, and software uses those codes to choose which sensor to read.
Pinout and wiring
For the TO-92 package, the documented pins are 1 GND, 2 DQ and 3 VDD. Use the datasheet drawing to determine viewing orientation. In a simple externally powered bus, connect DQ to the controller and use the bus pull-up shown in the datasheet.
Reading conversions
Higher resolution takes longer, up to 750 ms for a 12-bit conversion. Wait for conversion to finish before reading. Parasite power has additional pull-up requirements, so separate VDD is an easier first wiring approach.
Specifications
| Parameter | Value or condition | Source |
|---|---|---|
| External supply | 3.0–5.5 V | Analog Devices |
| Temperature range | −55 to +125 °C | Analog Devices |
| Resolution | 9–12 programmable bits | Analog Devices |
Compatibility and practice
3.0–5.5 V externally powered device; match the pull-up to the bus logic.
Related components
Sources and datasheets
- DS18B20 programmable resolution 1-Wire thermometer datasheet · Analog Devices