Python Wiring

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:

Assembled Pi T-Cobbler Plus - GPIO Breakout

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...

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. 

DHT22 temperature-humidity sensor + extras

The DHT22 is a basic, low-cost digital temperature and humidity sensor. It uses a capacitive humidity sensor and a thermistor to measure the surrounding air, and spits out a digital...


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 Feb 20, 2017.
This page (Python Wiring) was last updated on Aug 02, 2020.