The Raspbian distribution includes support for the DS18B20 1-wire temperature sensor. These sensors come in a small three pin package like a transistor and are accurate digital devices.

In this lesson, you will learn how to use a DS18B20 with the Raspberry Pi to take temperature readings.

Since the Raspberry Pi has no ADC (Analog to Digital Converter), it cannot directly use an analog temperature sensor like the TMP36, making the DS18B20 a good choice for temperature sensing.

This guide was first published on Jan 28, 2013. It was last updated on Feb 19, 2024.

This page (Overview) was last updated on Jan 28, 2013.

Text editor powered by tinymce.