We're going to use a combination of the Adafruit IO Client Library and Adafruit's CircuitPython to control a Raspberry Pi over Adafruit IO. 


1 x Raspberry Pi 3 - Model B+
The Raspberry Pi is a small linux board compatible with Adafruit IO projects.

If you're following along with a Raspberry Pi, we're going to use a T-Cobbler Plus for the IO Basics Projects. This add-on prototyping board lets you easily connect a Raspberry Pi (Raspberry Pi Model Zero, A+, B+, Pi 2, Pi 3) to a solderless breadboard:

Angled shot of Assembled Pi T-Cobbler Plus next to GPIO ribbon cable
This is the assembled version of the Pi T-Cobbler Plus.  It only works with the Raspberry Pi Model Zero, A+, B+, Pi 2, Pi 3 & Pi 4! (Any Pi with 2x20...
In Stock

We'll also need a temperature and humidity sensor. The DHT22 is a low-cost temperature and humidity sensor which is easy to wire up. You'll also need a 10k ohm resistor. 


Make the following connections between the Pi and the DHT22:

  • Pi 3.3V to DHT Pin 1
  • Pi Digital Pin 26 to DHT Pin 2
  • Pi GND to DHT Pin 4
  • 10k ohm resistor (left pin) to DHT Pin 2
  • 10k ohm resistor (right pin) to GND

This guide was first published on Feb 20, 2017. It was last updated on May 26, 2024.

This page (Python Wiring) was last updated on Mar 08, 2024.

Text editor powered by tinymce.