Unzip the OneWire and DallasTemperature archives and copy them into your Arduino libraries folder.ĭownload the Arduino ds18b20 Temperature Sensor Sketch and unzip the folder. Wiring this part backwards will fry it! You have been warned. ** See the DS18B20 datasheet for the pin diagram, and be very careful. * You only need one 4.7k pullup resistor for all 1-Wire devices connected to Arduino pin 3 All of the DS18B20 temperature sensors can be connected to the same IO pin: Use your solderless breadboard to make the connections.
If this is your first Arduino project, first go through our “ Arduino: Getting Started” tutorial. Arduino board ( Uno, Mega, Duemilanove, etc.) Software code used in this tutorial can be downloaded here:Īrduino ds18b20 Temperature Sensor Sketch This tutorial will show you how to connect many DS18B20, '1-Wire' temperature sensors to your Arduino board, using only 1 digital IO pin/one cable. This is a new version of our 1-Wire digital temperature sensor tutorial, now with more temperature sensing! Please download the latest version of the Arduino software at this URL: This tutorial has been updated to use version 1.0+ of the Arduino software, and compatible libraries.