Skip to content

Part 4. IoT Temperature Sensor

Rachel edited this page Sep 19, 2017 · 5 revisions

Temperature sensor Breadboard

Overview

We made a “Hello World!” Python script in Section 2. Setting up a Pi to stream temperature to a cloud service is quickly becoming the de facto IoT “Hello World!” project.

The DS18B20 temperature sensor works well with the Raspberry Pi because it has a digital output, and the Pi has no on-board analog to digital convertors (ADC). Raspbian includes an interface to read the output of the sensor. We just have to write a little code to grab and parse out the temperature.

NOTE: If you are going through this at home: To ensure you have the latest code samples, ensure you've performed a git pull in your code directory. If you are working out of your own fork, make sure you merge any upstream changes.

This Section will cover:

<< Part 3: Adding an LED - Part 4: Hardware Setup >>

You can’t perform that action at this time.