NEW PRODUCT – DS18B20 Digital temperature sensor + extras

Ds18B20To92 Lrg

DS18B20 Digital temperature sensor + extras. These 1-wire digital temperature sensors are fairly precise (±0.5°C over much of the range) and 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, and you can even connect multiple ones to the same pin, each one has a unique 64-bit ID burned in at the factory to differentiate them. Usable with 3.0-5.0V systems.

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. If you want something really simple, and you have an analog input pin, the TMP36 is trivial to get going.

We toss in a 4.7k resistor, which is required as a pullup from the DATA to VCC line when using the sensor. We don’t have a detailed tutorial up yet but you can get started by using the Dallas Temperature Control Arduino library which requires also the OneWire Library.

In stock and shipping now!

Join 7,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython in 2018 – Python on Microcontrollers is here!

Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Follow Adafruit on Instagram for top secret new products, behinds the scenes and more https://www.instagram.com/adafruit/

Maker Business — The many, many manufacturing processes listed on Wikipedia

Wearables — A bevel illusion

Electronics — Don’t float!

Biohacking — Optimizing the Warm Up

Python for Microcontrollers — CircuitPython 3.0.0 released!

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !


  1. I love 1-wire – it is really good for setting up easy networks of sensors. I hope you also create a breakout board for the dual channel 1-wire switch – good for activating fans or heaters…

    @Scharf no need – Jim Studt wrote an excellent robust library. The latest version is here: http://homepage.mac.com/wtpollard/Software/FileSharing7.html
    or you can just follow the link on the Adafruit’s DS18B20 product page…

  2. Sorry, not enough caffeine – just follow the link on Adafruit’s DS18B20 product page, the other link is old!

  3. There’s also a Bus Pirate (also at Adafruit) demo for this chip so you can get a feel for it before using it in a design 🙂

  4. Using the 1-wire protocol with an Arduino is not too hard at all. I’ve played with the DS18B20 and others before and they are really fun. I’m actually surprised LadyAda is only bringing them on board now!

Sorry, the comment form is closed at this time.