Hardware

Hardware

To follow this guide you'll need the following parts:

Wiring

Connect your DS18B20 sensor to a digital input on your development board.  You'll also need to add the 4.7 KΩ pull-up resistor to the signal line to ensure the board can read the sensor.  Here's an example of wiring a standalone DS18B20 to a Feather M0 board:

  • Left-most leg of the sensor (with the flat part facing you) to board ground.
  • Middle leg of the sensor to board D5.
  • Right-most leg of the sensor to board 3.3V.
  • 4.7 KΩ resistor connected to both the middle leg (data) and right-most leg (3.3V).

Or if you're using a waterproof or high-temperature probe here's an example of the wiring to a Feather M0 board:

  • Black wire (or solid white on high-temperature probe) to board ground.
  • Orange wire (or white with blue stripe on high-temperature probe) to board D5.
  • Red wire (or white with orange stripe on high-temperature probe) to board 3.3V.
  • 4.7KΩ resistor connected to both the data line on one side (D5 or whatever pin) and power line (3.3V) on the other side
This guide was first published on Jan 09, 2018. It was last updated on Oct 17, 2018. This page (Hardware) was last updated on Jan 09, 2018.