DS18B20 Temperature Sensor[FAQ+Video]: Circuit, Equivalents,and Pinout
Bulk Digital, Local 3V~5.5V Through Hole -55°C~125°C 1-Wire® ±0.5°C (±2°C) 12 b 1 (Unlimited)









Bulk Digital, Local 3V~5.5V Through Hole -55°C~125°C 1-Wire® ±0.5°C (±2°C) 12 b 1 (Unlimited)
DS18B20 is a kind of Temperature Sensor produced by Maxim Integrated, what is DS18B20? How does DS18B20 work? Magi will explain these questions to you in this article.

How to use DS18B20 Temperature sensor with arduino
- DS18B20 Description
- DS18B20 CAD Models
- DS18B20 Pinout and Configurations
- Specifications
- DS18B20 Applications
- DS18B20 Features
- DS18B20 Circuit Schematic
- DS18B20 Manufacturer
- DS18B20 Equivalents
- DS18B20 Alternatives
- How to use DS18B20?
- Where to use DS18B20?
- DS18B20 Package
- Trend Analysis
- Datasheet PDF
- Parts with Similar Specs
DS18B20 Description
The DS18B20 digital thermometer provides 9-bit to 12-bit Celsius temperature measurements and has an alarm function with nonvolatile user-programmable upper and lower trigger points. The DS18B20 communicates over a 1-Wire bus that by definition requires only one data line (and ground) for communication with a central microprocessor. In addition, the DS18B20 can derive power directly from the data line (“parasite power”), eliminating the need for an external power supply.
Each DS18B20 has a unique 64-bit serial code, which allows multiple DS18B20s to function on the same 1-Wire bus. Thus, it is simple to use one microprocessor to control many DS18B20s distributed over a large area. Applications that can benefit from this feature include HVAC environmental controls, temperature monitoring systems inside buildings, equipment, or machinery, and process monitoring and control systems.
DS18B20 CAD Models
Symbol

Footprint

3D Models

DS18B20 Pinout and Configurations

| No: | Pin Name | Description |
| 1 | Ground | Connect to the ground of the circuit |
| 2 | Vcc | The powers of the Sensor can be 3.3V or 5V |
| 3 | Data | This pin gives output the temperature value which can be read using the 1-wire method |
Specifications
- TypeParameter
- Factory Lead Time7 Weeks
- Mount
In electronic components, the term "Mount" typically refers to the method or process of physically attaching or fixing a component onto a circuit board or other electronic device. This can involve soldering, adhesive bonding, or other techniques to secure the component in place. The mounting process is crucial for ensuring proper electrical connections and mechanical stability within the electronic system. Different components may have specific mounting requirements based on their size, shape, and function, and manufacturers provide guidelines for proper mounting procedures to ensure optimal performance and reliability of the electronic device.
PCB, Through Hole - Mounting Type
The "Mounting Type" in electronic components refers to the method used to attach or connect a component to a circuit board or other substrate, such as through-hole, surface-mount, or panel mount.
Through Hole - Package / Case
refers to the protective housing that encases an electronic component, providing mechanical support, electrical connections, and thermal management.
TO-226-3, TO-92-3 (TO-226AA) - Number of Pins3
- Weight453.59237mg
- Test Conditions-10°C ~ 85°C (-55°C ~ 125°C)
- Operating Temperature
The operating temperature is the range of ambient temperature within which a power supply, or any other electrical equipment, operate in. This ranges from a minimum operating temperature, to a peak or maximum operating temperature, outside which, the power supply may fail.
-55°C~125°C - Packaging
Semiconductor package is a carrier / shell used to contain and cover one or more semiconductor components or integrated circuits. The material of the shell can be metal, plastic, glass or ceramic.
Bulk - Published2000
- JESD-609 Code
The "JESD-609 Code" in electronic components refers to a standardized marking code that indicates the lead-free solder composition and finish of electronic components for compliance with environmental regulations.
e3 - Pbfree Code
The "Pbfree Code" parameter in electronic components refers to the code or marking used to indicate that the component is lead-free. Lead (Pb) is a toxic substance that has been widely used in electronic components for many years, but due to environmental concerns, there has been a shift towards lead-free alternatives. The Pbfree Code helps manufacturers and users easily identify components that do not contain lead, ensuring compliance with regulations and promoting environmentally friendly practices. It is important to pay attention to the Pbfree Code when selecting electronic components to ensure they meet the necessary requirements for lead-free applications.
yes - Part Status
Parts can have many statuses as they progress through the configuration, analysis, review, and approval stages.
Active - Moisture Sensitivity Level (MSL)
Moisture Sensitivity Level (MSL) is a standardized rating that indicates the susceptibility of electronic components, particularly semiconductors, to moisture-induced damage during storage and the soldering process, defining the allowable exposure time to ambient conditions before they require special handling or baking to prevent failures
1 (Unlimited) - Number of Terminations3
- Termination
Termination in electronic components refers to the practice of matching the impedance of a circuit to prevent signal reflections and ensure maximum power transfer. It involves the use of resistors or other components at the end of transmission lines or connections. Proper termination is crucial in high-frequency applications to maintain signal integrity and reduce noise.
SMD/SMT - ECCN Code
An ECCN (Export Control Classification Number) is an alphanumeric code used by the U.S. Bureau of Industry and Security to identify and categorize electronic components and other dual-use items that may require an export license based on their technical characteristics and potential for military use.
EAR99 - Terminal Finish
Terminal Finish refers to the surface treatment applied to the terminals or leads of electronic components to enhance their performance and longevity. It can improve solderability, corrosion resistance, and overall reliability of the connection in electronic assemblies. Common finishes include nickel, gold, and tin, each possessing distinct properties suitable for various applications. The choice of terminal finish can significantly impact the durability and effectiveness of electronic devices.
Matte Tin (Sn) - Voltage - Supply
Voltage - Supply refers to the range of voltage levels that an electronic component or circuit is designed to operate with. It indicates the minimum and maximum supply voltage that can be applied for the device to function properly. Providing supply voltages outside this range can lead to malfunction, damage, or reduced performance. This parameter is critical for ensuring compatibility between different components in a circuit.
3V~5.5V - Base Part Number
The "Base Part Number" (BPN) in electronic components serves a similar purpose to the "Base Product Number." It refers to the primary identifier for a component that captures the essential characteristics shared by a group of similar components. The BPN provides a fundamental way to reference a family or series of components without specifying all the variations and specific details.
DS18B20 - Output Type
The "Output Type" parameter in electronic components refers to the type of signal or data that is produced by the component as an output. This parameter specifies the nature of the output signal, such as analog or digital, and can also include details about the voltage levels, current levels, frequency, and other characteristics of the output signal. Understanding the output type of a component is crucial for ensuring compatibility with other components in a circuit or system, as well as for determining how the output signal can be utilized or processed further. In summary, the output type parameter provides essential information about the nature of the signal that is generated by the electronic component as its output.
1-Wire® - Interface
In electronic components, the term "Interface" refers to the point at which two different systems, devices, or components connect and interact with each other. It can involve physical connections such as ports, connectors, or cables, as well as communication protocols and standards that facilitate the exchange of data or signals between the connected entities. The interface serves as a bridge that enables seamless communication and interoperability between different parts of a system or between different systems altogether. Designing a reliable and efficient interface is crucial in ensuring proper functionality and performance of electronic components and systems.
Serial - Operating Supply Current
Operating Supply Current, also known as supply current or quiescent current, is a crucial parameter in electronic components that indicates the amount of current required for the device to operate under normal conditions. It represents the current drawn by the component from the power supply while it is functioning. This parameter is important for determining the power consumption of the component and is typically specified in datasheets to help designers calculate the overall power requirements of their circuits. Understanding the operating supply current is essential for ensuring proper functionality and efficiency of electronic systems.
1.5mA - Nominal Supply Current
Nominal current is the same as the rated current. It is the current drawn by the motor while delivering rated mechanical output at its shaft.
1mA - Output Current
The rated output current is the maximum load current that a power supply can provide at a specified ambient temperature. A power supply can never provide more current that it's rated output current unless there is a fault, such as short circuit at the load.
4mA - Number of Bits12
- Resolution
Resolution in electronic components refers to the smallest increment of measurement or change that can be detected or represented by the component. It is a crucial specification in devices such as sensors, displays, and converters, as it determines the level of detail or accuracy that can be achieved. For example, in a digital camera, resolution refers to the number of pixels that make up an image, with higher resolution indicating a greater level of detail. In analog-to-digital converters, resolution is the number of discrete values that can be represented in the digital output, determining the precision of the conversion process. Overall, resolution plays a significant role in determining the performance and capabilities of electronic components in various applications.
12 b - Sensor Type
In electronic components, the parameter "Sensor Type" refers to the specific type of sensor technology used in a particular component to detect and measure physical phenomena such as light, temperature, pressure, motion, or proximity. Different sensor types utilize various principles and mechanisms to convert the detected input into an electrical signal that can be processed by the electronic component. Common sensor types include photodiodes, thermistors, accelerometers, and proximity sensors, each designed for specific applications and environments. Understanding the sensor type is crucial for selecting the right component for a given task and ensuring accurate and reliable sensing capabilities in electronic systems.
Digital, Local - Max Supply Voltage (DC)
The parameter "Max Supply Voltage (DC)" in electronic components refers to the maximum voltage that can be safely applied to the component without causing damage. This specification is crucial for ensuring the reliable operation and longevity of the component within a given circuit. Exceeding the maximum supply voltage can lead to overheating, breakdown of internal components, or even permanent damage. It is important to carefully adhere to this specification when designing or using electronic circuits to prevent potential failures and ensure the safety of the components.
5.5V - Min Supply Voltage (DC)
The parameter "Min Supply Voltage (DC)" in electronic components refers to the minimum voltage level required for the component to operate properly. It indicates the lowest voltage that can be safely applied to the component without causing damage or malfunction. This parameter is crucial for ensuring the reliable and stable operation of the component within its specified operating range. It is important for designers and engineers to adhere to the specified minimum supply voltage to prevent potential issues such as erratic behavior, reduced performance, or permanent damage to the component.
3V - Housing
Housing in electronic components refers to the physical enclosure that protects the internal circuitry and components from environmental factors such as dust, moisture, and mechanical damage. It provides structural support and electrical insulation while facilitating heat dissipation. The design and materials used for housing are crucial for the reliability and performance of the electronic device, as they impact factors like thermal management, electromagnetic interference, and overall aesthetics.
PLASTIC - Accuracy - Highest (Lowest)
In electronic components, "Accuracy - Highest (Lowest)" refers to the range within which the actual value of a parameter can deviate from the ideal or specified value. The term "Highest" indicates the upper limit of this range, while "Lowest" indicates the lower limit. For example, if a component has an accuracy of ±5%, the highest accuracy would mean that the actual value could be within 5% above the specified value, while the lowest accuracy would mean it could be within 5% below the specified value. This parameter is crucial for ensuring the reliability and performance of electronic devices by determining how closely the component's output matches the desired value.
±0.5°C (±2°C) - Sensing Temperature - Local
Sensing Temperature - Local refers to the capability of an electronic component to measure the temperature in its immediate environment or vicinity. This parameter is crucial for applications that require monitoring of temperature for performance, safety, or stability purposes. It often involves temperature sensors integrated within components like microcontrollers, power regulators, or other integrated circuits. The local sensing allows for accurate temperature readings that help in adjusting operational conditions, ensuring optimal performance, and preventing thermal-related failures.
-55°C~125°C - Accuracy-Max
Accuracy-Max refers to the maximum permissible error in the output of an electronic component or system, typically expressed as a percentage of the nominal value. It indicates the extent to which the measured or calculated value can deviate from the true value under specified conditions. This parameter is crucial for ensuring reliable performance, especially in applications where precision is critical. A lower Accuracy-Max signifies better accuracy and higher quality in measurement and control processes.
0.5 Cel - Features
In the context of electronic components, the term "Features" typically refers to the specific characteristics or functionalities that a particular component offers. These features can vary depending on the type of component and its intended use. For example, a microcontroller may have features such as built-in memory, analog-to-digital converters, and communication interfaces like UART or SPI.When evaluating electronic components, understanding their features is crucial in determining whether they meet the requirements of a particular project or application. Engineers and designers often look at features such as operating voltage, speed, power consumption, and communication protocols to ensure compatibility and optimal performance.In summary, the "Features" parameter in electronic components describes the unique attributes and capabilities that differentiate one component from another, helping users make informed decisions when selecting components for their electronic designs.
Output Switch, Programmable Limit, Programmable Resolution - Height4.95mm
- Length4.95mm
- Width3.94mm
- REACH SVHC
The parameter "REACH SVHC" in electronic components refers to the compliance with the Registration, Evaluation, Authorization, and Restriction of Chemicals (REACH) regulation regarding Substances of Very High Concern (SVHC). SVHCs are substances that may have serious effects on human health or the environment, and their use is regulated under REACH to ensure their safe handling and minimize their impact.Manufacturers of electronic components need to declare if their products contain any SVHCs above a certain threshold concentration and provide information on the safe use of these substances. This information allows customers to make informed decisions about the potential risks associated with using the components and take appropriate measures to mitigate any hazards.Ensuring compliance with REACH SVHC requirements is essential for electronics manufacturers to meet regulatory standards, protect human health and the environment, and maintain transparency in their supply chain. It also demonstrates a commitment to sustainability and responsible manufacturing practices in the electronics industry.
No SVHC - Radiation Hardening
Radiation hardening is the process of making electronic components and circuits resistant to damage or malfunction caused by high levels of ionizing radiation, especially for environments in outer space (especially beyond the low Earth orbit), around nuclear reactors and particle accelerators, or during nuclear accidents or nuclear warfare.
No - RoHS Status
RoHS means “Restriction of Certain Hazardous Substances” in the “Hazardous Substances Directive” in electrical and electronic equipment.
ROHS3 Compliant - Lead Free
Lead Free is a term used to describe electronic components that do not contain lead as part of their composition. Lead is a toxic material that can have harmful effects on human health and the environment, so the electronics industry has been moving towards lead-free components to reduce these risks. Lead-free components are typically made using alternative materials such as silver, copper, and tin. Manufacturers must comply with regulations such as the Restriction of Hazardous Substances (RoHS) directive to ensure that their products are lead-free and environmentally friendly.
Lead Free
DS18B20 Applications
Consumer Products
Industrial Systems
Thermally Sensitive Systems
Thermometers
Thermostatic Controls
DS18B20 Features
1. Unique 1-Wire® Interface Requires Only One Port Pin for Communication
2. Reduce Component Count with Integrated Temperature Sensor and EEPROM
Measures Temperatures from -55°C to +125°C (-67°F to +257°F)
±0.5°C Accuracy from -10°C to +85°C
Programmable Resolution from 9 Bits to 12 Bits
No External Components Required
3. Parasitic Power Mode Requires Only 2 Pins for Operation (DQ and GND)
4. Simplifies Distributed Temperature-Sensing Applications with Multidrop Capability
Each Device Has a Unique 64-Bit Serial Code Stored in On-Board ROM
5. Flexible User-Definable Nonvolatile (NV) Alarm Settings with Alarm Search Command Identifies Devices with Temperatures Outside Programmed Limits
6. Available in 8-Pin SO (150 mils), 8-Pin µSOP, and 3-Pin TO-92 Packages
DS18B20 Circuit Schematic

DS18B20 Manufacturer
Maxim Integrated provides ease of design and speeds time to market, through analog integration. The company's analog ICs offer extra features and functionality carefully designed to streamline circuits and simplify the design. Look to Maxim for solutions for consumer electronics, personal computers and peripherals, mobile devices, wireless and fiber communications, test equipment, instrumentation, video displays, and automotive applications. Maxim’s analog and mixed-signal solutions include data converters, interface circuits, power, RF wireless circuits, clocks and oscillators, microcontrollers (MCUs), operational amplifiers (op-amps), and sensors.
DS18B20 Equivalents
How to use DS18B20?
The sensor works with the method of 1-Wire communication. It requires only the data pin connected to the microcontroller with a pull-up resistor and the other two pins are used for power as shown below.

When the bus is not in use, the pull-up resistor keeps the line in a high condition. The sensor's temperature reading will be saved in a 2-byte register inside the sensor. This data can be read using the 1-wire approach, which involves delivering a series of data. To read the values, two types of commands must be sent: one is a ROM command, and the other is a function command.
If you plan to connect it to an Arduino board, you won't have to worry about any of these issues. You can utilize the built-in functions to access the data and construct the conveniently available library.
Where to use DS18B20?
Maxim integrated's DS18B20 is a 1-wire programmable Temperature sensor. It's commonly used to detect the temperature in harsh settings like chemical solutions, mines, and soil, among other things. The sensor's construction is tough, and it may also be ordered with a waterproof variant, making installation simple. It has a good accuracy of 5°C and can measure a wide range of temperatures from -55°C to +125°C. Each sensor has its own address and only uses one MCU pin to transport data, making it an excellent choice for sensing temperature at various locations without sacrificing too many of your microcontroller's digital pins.
DS18B20 Package
Trend Analysis
Datasheet PDF
- Datasheets :
- Other Related Documents :
- Application Notes :
- Environmental Information :
- ConflictMineralStatement :
Parts with Similar Specs
- ImagePart NumberManufacturerPackage / CaseNumber of PinsMountOperating TemperatureResolutionInterfaceMin Supply Voltage (DC)Max Supply Voltage (DC)View Compare
DS18B20
TO-226-3, TO-92-3 (TO-226AA)
3
PCB, Through Hole
-55°C ~ 125°C
12 b
Serial
3 V
5.5 V
TO-226-3, TO-92-3 (TO-226AA)
3
PCB, Through Hole
-55°C ~ 125°C
8 b
Serial
3 V
5.5 V
TO-226-3, TO-92-3 (TO-226AA)
3
Through Hole
-55°C ~ 125°C
11 b
Serial
3 V
5.5 V
TO-226-3, TO-92-3 (TO-226AA) (Formed Leads)
3
Through Hole
-55°C ~ 125°C
12 b
Serial
3 V
5.5 V
TO-226-3, TO-92-3 (TO-226AA) (Formed Leads)
3
Through Hole
-55°C ~ 125°C
12 b
Serial
3 V
5.5 V
How does the DS18B20 work?
It works on the principle of direct conversion of temperature into a digital value.
What is the working principle of DS18B20?
The DS18B20 Digital Thermometer provides 9 to 12-bit (configurable) temperature readings which indicate the temperature of the device. It communicates over a 1-Wire bus that by definition requires only one data line (and ground) for communication with a central microprocessor. In addition, it can derive power directly from the data line (“parasite power”), eliminating the need for an external power supply. The core functionality of the DS18B20 is its direct-to-digital temperature sensor. The resolution of the temperature sensor is user-configurable to 9, 10, 11, or 12 bits, corresponding to increments of 0.5°C, 0.25°C, 0.125°C, and 0.0625°C, respectively. The default resolution at power-up is 12-bit.
How connect DS18B20 to Arduino?
First plug the sensor on the breadboard the connect its pins to the Arduino using the jumpers in the following order: pin 1 to GND; pin 2 to any digital pin (pin 2 in our case); pin 3 to +5V or +3.3V, at the end put the pull-up resistor.
Is DS18B20 a thermistor?
A thermistor is a thermal resistor - a resistor that changes its resistance with temperature. ... Thermistors have some benefits over other kinds of temperature sensors such as analog output chips (LM35/TMP36 ) or digital temperature sensor chips (DS18B20) or thermocouples.
What’s DS18B20 power supply range?
3.0V to 5.5V
EPCS16SI8N 3.3V 16 M-bit 8- Pin SOIC Tube, FPGA Configuration Memory17 April 20251116
74HC244D: Overview, Features, and Applications15 November 2023560
STM32F410RBT7 Microcontroller: Pinout, Datasheet, and Circuit30 June 20211892
TDA1517P Power Amplifier: Circuit, Replacement and Pinout20 August 202118561
ADM242ANZ Receiver: Pinout, Specification, and Datasheet02 June 2021524
A Comprehensive Guide to the Atmel AT89LP51RB2/RC2/IC2 Microcontroller29 February 2024127
BT152-800R,127 Thyristor: Pinout, Datasheet, Application [FAQ]27 April 20226876
24C08 EEPROM: Features, Pinout, and Datasheet [Video&FAQ]07 January 202210124
Understanding the Crystal Oscillator: Construction, Working Principles and Applications08 July 20242753
Types, Structure, and Packages of Integrated Circuits23 October 202511726
How to Choose the Best Deep Cycle Battery in 2024 | Reviews and Buying Guide21 July 20252328
Semiconductor Inspection System Market Expected to Reach US$ 8,380.01 Million By 203015 September 20232271
State-of-Charge Estimation Techniques for Lithium-Ion Batteries26 January 20242113
Yahoo Discontinues Services in Mainland China13 November 2023799
An Analysis of Low Pressure on Partial Discharge in Micro-Voids in Aviation25 January 20241790
Will HBM replace DDR and become Computer Memory?09 September 202120612
Maxim Integrated
In Stock: 81
United States
China
Canada
Japan
Russia
Germany
United Kingdom
Singapore
Italy
Hong Kong(China)
Taiwan(China)
France
Korea
Mexico
Netherlands
Malaysia
Austria
Spain
Switzerland
Poland
Thailand
Vietnam
India
United Arab Emirates
Afghanistan
Åland Islands
Albania
Algeria
American Samoa
Andorra
Angola
Anguilla
Antigua & Barbuda
Argentina
Armenia
Aruba
Australia
Azerbaijan
Bahamas
Bahrain
Bangladesh
Barbados
Belarus
Belgium
Belize
Benin
Bermuda
Bhutan
Bolivia
Bonaire, Sint Eustatius and Saba
Bosnia & Herzegovina
Botswana
Brazil
British Indian Ocean Territory
British Virgin Islands
Brunei
Bulgaria
Burkina Faso
Burundi
Cabo Verde
Cambodia
Cameroon
Cayman Islands
Central African Republic
Chad
Chile
Christmas Island
Cocos (Keeling) Islands
Colombia
Comoros
Congo
Congo (DRC)
Cook Islands
Costa Rica
Côte d’Ivoire
Croatia
Cuba
Curaçao
Cyprus
Czechia
Denmark
Djibouti
Dominica
Dominican Republic
Ecuador
Egypt
El Salvador
Equatorial Guinea
Eritrea
Estonia
Eswatini
Ethiopia
Falkland Islands
Faroe Islands
Fiji
Finland
French Guiana
French Polynesia
Gabon
Gambia
Georgia
Ghana
Gibraltar
Greece
Greenland
Grenada
Guadeloupe
Guam
Guatemala
Guernsey
Guinea
Guinea-Bissau
Guyana
Haiti
Honduras
Hungary
Iceland
Indonesia
Iran
Iraq
Ireland
Isle of Man
Israel
Jamaica
Jersey
Jordan
Kazakhstan
Kenya
Kiribati
Kosovo
Kuwait
Kyrgyzstan
Laos
Latvia
Lebanon
Lesotho
Liberia
Libya
Liechtenstein
Lithuania
Luxembourg
Macao(China)
Madagascar
Malawi
Maldives
Mali
Malta
Marshall Islands
Martinique
Mauritania
Mauritius
Mayotte
Micronesia
Moldova
Monaco
Mongolia
Montenegro
Montserrat
Morocco
Mozambique
Myanmar
Namibia
Nauru
Nepal
New Caledonia
New Zealand
Nicaragua
Niger
Nigeria
Niue
Norfolk Island
North Korea
North Macedonia
Northern Mariana Islands
Norway
Oman
Pakistan
Palau
Palestinian Authority
Panama
Papua New Guinea
Paraguay
Peru
Philippines
Pitcairn Islands
Portugal
Puerto Rico
Qatar
Réunion
Romania
Rwanda
Samoa
San Marino
São Tomé & Príncipe
Saudi Arabia
Senegal
Serbia
Seychelles
Sierra Leone
Sint Maarten
Slovakia
Slovenia
Solomon Islands
Somalia
South Africa
South Sudan
Sri Lanka
St Helena, Ascension, Tristan da Cunha
St. Barthélemy
St. Kitts & Nevis
St. Lucia
St. Martin
St. Pierre & Miquelon
St. Vincent & Grenadines
Sudan
Suriname
Svalbard & Jan Mayen
Sweden
Syria
Tajikistan
Tanzania
Timor-Leste
Togo
Tokelau
Tonga
Trinidad & Tobago
Tunisia
Turkey
Turkmenistan
Turks & Caicos Islands
Tuvalu
U.S. Outlying Islands
U.S. Virgin Islands
Uganda
Ukraine
Uruguay
Uzbekistan
Vanuatu
Vatican City
Venezuela
Wallis & Futuna
Yemen
Zambia
Zimbabwe









