
Pass our oneWire reference to Dallas Temperature. Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs) Data wire is plugged into port 2 on the Arduino This is the library link if you want to download it manually. Or simply use library manager like mentioned in the video. You need to download and place the library in your Arduino library folder. We can also use any Arduino like Arduino mega or nano the same way. So here I already have an Arduino UNO, DS18B20 sensor, and also a 10k resistor.

Now we will learn how to use DSB18B20 with Arduino. So now you can decide if this sensor is a match for your project. Unique 1-Wire® Interface Requires Only One Port Pin for Communication.From the DS18B20 datasheet we knew the recommended application of this sensor.Īnd some features we extract from the datasheet.
