Arduino Projects

Interfacing Multiple DS18B20 Temperature Sensors to Arduino

Interfacing Multiple DS18B20 Temperature Sensors to Arduino:

In this project, we will learn about Interfacing Multiple DS18B20 Temperature Sensors to Arduino. Simply we will connect Multiple DS18B20 Temperature Sensors to Arduino and display the temperature values of all the sensors in degrees Celsius or Fahrenheit. Only one digital pin of Arduino is required to connect several temperature sensors. We can connect a maximum of 1024 sensors using the I2C Protocol. But here I have shown connecting 3 DS18B20 Temperature Sensors to Arduino. I have also a very detailed tutorial on how to connect multiple MAX6675 K-type thermocouples with the Arduino.

The DS18B20 temperature sensor is a 1-wire digital temperature sensor. This comes with a sealed package lets precisely measure temperatures in wet environments with a simple 1-Wire interface. It communicates on a common bus. It means it can connect several devices and read their values using just one digital pin of the Arduino.

DS18B20 Waterproof Digital Temperature Sensor:

This is a pre-wired and waterproofed version of the DS18B20 sensor. Handy for when you need to measure something far away, or in wet conditions. The Sensor can measure the temperature between -55 to 125°C (-67°F to +257°F). The cable is jacketed in PVC.

Because it is digital, there is no any signal degradation even over long distances. These 1-wire digital temperature sensors are fairly precise, i.e ±0.5°C over much of the range. It can give up to 12 bits of precision from the onboard digital-to-analog converter. They work great with any microcontroller using a single digital pin.

The only downside is they use the Dallas 1-Wire protocol, which is somewhat complex and requires a bunch of code to parse out the communication. We toss in a 4.7k resistor, which is required as a pullup from the DATA to the VCC line when using the sensor.

Components Required:

Arduino UNO Board
Multiple DS18B20 Waterproof Temperature Sensor
16*2 LCD Display
4.7K Resistor
Connecting Jumper Wires

Amazon Links:

Arduino Nano USB-C Type (Recommended)

12v Adaptor:

DS18B20 one-wire digital temperature sensor:


16X2 LCD

Other Tools and Components:

ESP32 WiFi + Bluetooth Module (Recommended)

Top Arduino Sensors:

Super Starter kit for Beginners

Digital Oscilloscopes

Variable Supply

Digital Multimeter

Soldering iron kits

PCB small portable drill machines

*Please Note: These are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!

Multiple DS18b20 sensors Interfacing with Arduino:

Interfacing Multiple DS18B20 Arduino, in this image you can see, multiple ds18b20 temperature sensors are interfaced with arduino, a 16x2 lcd is also connected with the arduino.

Multiple DS18b20 Arduino Source Code/Program:

Related Project:

Nodemcu ESP8266 DS18b20 Waterproof Temperature Sensor Monitoring

Engr Fahad

My name is Shahzada Fahad and I am an Electrical Engineer. I have been doing Job in UAE as a site engineer in an Electrical Construction Company. Currently, I am running my own YouTube channel "Electronic Clinic", and managing this Website. My Hobbies are * Watching Movies * Music * Martial Arts * Photography * Travelling * Make Sketches and so on...

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button