# Multi-Sensor IoT Environmental Sensor Box With CircuitPython

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/074/976/medium800/sensors_dashboard.png?1556243651)

This guide will walk you through making an environmental monitoring device with **GPS** , **Temperature** , **Humidity** , **Barometric Pressure** , and **Air Quality** sensors, all updating to the cloud. Once build, this project takes readings occasionally and sends them to Adafruit IO, stamped with time and location. All that is required is an AC outlet and a WiFi network.

**All done in CircuitPython with AirLift** , our wireless co-processor that makes secure IoT projects a breeze. And we stick it in a cute weatherproof case so it can be deployed anywhere.

![](https://cdn-learn.adafruit.com/assets/assets/000/075/127/medium800/sensors_packed-in.jpg?1556733129)

While one of these devices is useful to to monitor some environment (say your room, a greenhouse, or a garden area) many of them could be placed around a house or city to monitor conditions in various areas.&nbsp; This collection of time and location stamped data could be very useful for determining pollution patterns and so forth.

The units are small, lightweight, and have minimal requirements (power and WiFi) so they can be placed almost anywhere for extended periods of time, or moved around.

When the unit starts up, it checks where it is. Every hour, it refreshes the time from AdafruitIO. Periodically it reads all its sensors and sends the readings to AdafuitIO. This is set to happen every 5 minutes in the code, but can be changed as required. The only limitation is that there has to be enough time between readings to let them be sent and AdafruitIO has some limitations on frequency of updates for the free and plus versions.

## Parts
Featured
### Adafruit Feather M4 Express - Featuring ATSAMD51

[Adafruit Feather M4 Express - Featuring ATSAMD51](https://www.adafruit.com/product/3857)
It's what you've been waiting for, the Feather M4 Express featuring ATSAMD51. This Feather is fast like a swift, smart like an owl, strong like a ox-bird (it's half ox, half bird, OK?) This feather is powered by our new favorite chip, the **ATSAMD51J19** -&nbsp; with...

In Stock
[Buy Now](https://www.adafruit.com/product/3857)
[Related Guides to the Product](https://learn.adafruit.com/products/3857/guides)
![Angled shot of a Adafruit Feather M4 Express. ](https://cdn-shop.adafruit.com/640x480/3857-10.jpg)

Featured
### Adafruit AirLift – ESP32 WiFi Co-Processor Breakout Board

[Adafruit AirLift – ESP32 WiFi Co-Processor Breakout Board](https://www.adafruit.com/product/4201)
Give your plain ol' microcontroller project a _lift_ with the Adafruit AirLift - a breakout board that lets you use the powerful ESP32 as a WiFi co-processor. You probably have your favorite microcontroller (like the ATmega328 or ATSAMD51), awesome peripherals and lots of libraries....

In Stock
[Buy Now](https://www.adafruit.com/product/4201)
[Related Guides to the Product](https://learn.adafruit.com/products/4201/guides)
![Top view of Adafruit AirLift Breakout Board.](https://cdn-shop.adafruit.com/640x480/4201-08.jpg)

Featured
### Adafruit Ultimate GPS FeatherWing

[Adafruit Ultimate GPS FeatherWing](https://www.adafruit.com/product/3133)
Give your Feather a sense of place, with an Ultimate GPS FeatherWing. <!--EndFragment-->In 2013 we designed the [Ultimate GPS module](https://www.adafruit.com/products/746) to satisfy all your GPS desires - and now we have brought its power and versatility plus more to our...

In Stock
[Buy Now](https://www.adafruit.com/product/3133)
[Related Guides to the Product](https://learn.adafruit.com/products/3133/guides)
![Angled shot of long, rectangular GPS-enabled add-on board.](https://cdn-shop.adafruit.com/640x480/3133-09.jpg)

Featured
### Adafruit BME280 I2C or SPI Temperature Humidity Pressure Sensor

[Adafruit BME280 I2C or SPI Temperature Humidity Pressure Sensor](https://www.adafruit.com/product/2652)
Bosch has stepped up their game with their new BME280 sensor, an environmental sensor with temperature, barometric pressure&nbsp;and&nbsp;humidity! This sensor is great for all sorts of indoor environmental sensing and can even be used in both I2C and SPI!

This precision sensor from...

In Stock
[Buy Now](https://www.adafruit.com/product/2652)
[Related Guides to the Product](https://learn.adafruit.com/products/2652/guides)
![small, rectangle-shaped, BME280 temperature humidity pressure sensor breakout board.](https://cdn-shop.adafruit.com/640x480/2652-04.jpg)

Featured
### PM2.5 Air Quality Sensor and Breadboard Adapter Kit

[PM2.5 Air Quality Sensor and Breadboard Adapter Kit](https://www.adafruit.com/product/3686)
Breathe easy, knowing that you can track and sense the quality of the air around you with th **e PM2.5&nbsp;Air Quality Sensor with Breadboard Adapter** particulate sensor. [Mad Max & Furiosa definitely should have hooked up one of...](https://en.wikipedia.org/wiki/Mad_Max)

In Stock
[Buy Now](https://www.adafruit.com/product/3686)
[Related Guides to the Product](https://learn.adafruit.com/products/3686/guides)
![Person soldering next to sensor, which detects the fumes and lights up an LED red](https://cdn-shop.adafruit.com/product-videos/640x480/3686-04.jpg)

### Pycom Universal IP67 Case for Pycom boards

[Pycom Universal IP67 Case for Pycom boards](https://www.adafruit.com/product/3690)
[If you have a Pycom board](https://www.adafruit.com/?q=pycom), you probably want to stick it outside. How to do that safely? Behold the **Universal IP67 Case**!&nbsp;[Pycom](https://pycom.io)&nbsp;designed their own waterproof enclosure with thoughtful...

In Stock
[Buy Now](https://www.adafruit.com/product/3690)
[Related Guides to the Product](https://learn.adafruit.com/products/3690/guides)
![Pycom Universal IP67 Case ](https://cdn-shop.adafruit.com/640x480/3690-00.jpg)

### SMA to uFL/u.FL/IPX/IPEX RF Adapter Cable

[SMA to uFL/u.FL/IPX/IPEX RF Adapter Cable](https://www.adafruit.com/product/851)
This RF adapter cable is super handy for anyone doing RF work. Often times, small electronics save space by having a pick-and-placeable u.FL connector (also called uFL, IPEX, IPAX, IPX, MHF, and AM). But most antennas have SMA or RP-SMA connectors on them. This little cable will bridge the...

In Stock
[Buy Now](https://www.adafruit.com/product/851)
[Related Guides to the Product](https://learn.adafruit.com/products/851/guides)
![SMA to uFL Adapter Cable](https://cdn-shop.adafruit.com/640x480/851-03.jpg)

### GPS Antenna - External Active Antenna - 3-5V 28dB 5 Meter SMA

[GPS Antenna - External Active Antenna - 3-5V 28dB 5 Meter SMA](https://www.adafruit.com/product/960)
Give your Ultimate GPS V3 a boost with this external active antenna. This GPS antenna draws about 10mA and will give you an additional 28 dB of gain. It's got a 5 meter long cable so it will easily reach wherever you need it to. The antenna is magnetic so it will stick to the top of a car...

In Stock
[Buy Now](https://www.adafruit.com/product/960)
[Related Guides to the Product](https://learn.adafruit.com/products/960/guides)
![External Active GPS Antenna block type with long antenna cable.](https://cdn-shop.adafruit.com/640x480/960-04.jpg)

### Short Headers Kit for Feather - 12-pin + 16-pin Female Headers

[Short Headers Kit for Feather - 12-pin + 16-pin Female Headers](https://www.adafruit.com/product/2940)
These two&nbsp; **Short** &nbsp; **Female&nbsp;Headers** &nbsp;alone are, well, lonely. But pair them with any of our&nbsp;[Feather](https://www.adafruit.com/categories/777)&nbsp;boards and you're in business!

These headers are particularly cute and...

In Stock
[Buy Now](https://www.adafruit.com/product/2940)
[Related Guides to the Product](https://learn.adafruit.com/products/2940/guides)
![Angled shot of two stacking headers.](https://cdn-shop.adafruit.com/640x480/2940-01.jpg)

### Short Feather Male Headers - 12-pin and 16-pin Male Header Set

[Short Feather Male Headers - 12-pin and 16-pin Male Header Set](https://www.adafruit.com/product/3002)
These two&nbsp; **Short** &nbsp; **Male&nbsp;Headers** &nbsp;alone are, well, lonely. But pair them with any of our&nbsp;[Feather](https://www.adafruit.com/categories/777)&nbsp;boards and you're in business!

<p...></p...>In Stock
[Buy Now](https://www.adafruit.com/product/3002)
[Related Guides to the Product](https://learn.adafruit.com/products/3002/guides)
![Angled shot of a Short Feather Male Headers - 12-pin and 16-pin Male Header Set. ](https://cdn-shop.adafruit.com/640x480/3002-00.jpg)

### Silicone Cover Stranded-Core Ribbon Cable - 10 Wire 1 Meter Long

[Silicone Cover Stranded-Core Ribbon Cable - 10 Wire 1 Meter Long](https://www.adafruit.com/product/3890)
For those who are fans of our silicone-covered wires, but are always looking to _up their wiring game_. We now have **Silicone Cover Ribbon cables!** These may look _a lot_ like <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/3890)
[Related Guides to the Product](https://learn.adafruit.com/products/3890/guides)
![10 wire Silicone Cover Stranded-Core Ribbon Cable](https://cdn-shop.adafruit.com/640x480/3890-01.jpg)

- [Next Page](https://learn.adafruit.com/remote-iot-environmental-sensor/the-circuit.md)

## Guide Products

### Adafruit Feather M4 Express - Featuring ATSAMD51

[Adafruit Feather M4 Express - Featuring ATSAMD51](https://www.adafruit.com/product/3857)
It's what you've been waiting for, the Feather M4 Express featuring ATSAMD51. This Feather is fast like a swift, smart like an owl, strong like a ox-bird (it's half ox, half bird, OK?) This feather is powered by our new favorite chip, the **ATSAMD51J19** -&nbsp; with...

In Stock
[Buy Now](https://www.adafruit.com/product/3857)
[Related Guides to the Product](https://learn.adafruit.com/products/3857/guides)
### Adafruit AirLift – ESP32 WiFi Co-Processor Breakout Board

[Adafruit AirLift – ESP32 WiFi Co-Processor Breakout Board](https://www.adafruit.com/product/4201)
Give your plain ol' microcontroller project a _lift_ with the Adafruit AirLift - a breakout board that lets you use the powerful ESP32 as a WiFi co-processor. You probably have your favorite microcontroller (like the ATmega328 or ATSAMD51), awesome peripherals and lots of libraries....

In Stock
[Buy Now](https://www.adafruit.com/product/4201)
[Related Guides to the Product](https://learn.adafruit.com/products/4201/guides)
### Adafruit Ultimate GPS FeatherWing

[Adafruit Ultimate GPS FeatherWing](https://www.adafruit.com/product/3133)
Give your Feather a sense of place, with an Ultimate GPS FeatherWing. <!--EndFragment-->In 2013 we designed the [Ultimate GPS module](https://www.adafruit.com/products/746) to satisfy all your GPS desires - and now we have brought its power and versatility plus more to our...

In Stock
[Buy Now](https://www.adafruit.com/product/3133)
[Related Guides to the Product](https://learn.adafruit.com/products/3133/guides)
### Adafruit BME280 I2C or SPI Temperature Humidity Pressure Sensor

[Adafruit BME280 I2C or SPI Temperature Humidity Pressure Sensor](https://www.adafruit.com/product/2652)
Bosch has stepped up their game with their new BME280 sensor, an environmental sensor with temperature, barometric pressure&nbsp;and&nbsp;humidity! This sensor is great for all sorts of indoor environmental sensing and can even be used in both I2C and SPI!

This precision sensor from...

In Stock
[Buy Now](https://www.adafruit.com/product/2652)
[Related Guides to the Product](https://learn.adafruit.com/products/2652/guides)
### PM2.5 Air Quality Sensor and Breadboard Adapter Kit

[PM2.5 Air Quality Sensor and Breadboard Adapter Kit](https://www.adafruit.com/product/3686)
Breathe easy, knowing that you can track and sense the quality of the air around you with th **e PM2.5&nbsp;Air Quality Sensor with Breadboard Adapter** particulate sensor. [Mad Max & Furiosa definitely should have hooked up one of...](https://en.wikipedia.org/wiki/Mad_Max)

In Stock
[Buy Now](https://www.adafruit.com/product/3686)
[Related Guides to the Product](https://learn.adafruit.com/products/3686/guides)
### Pycom Universal IP67 Case for Pycom boards

[Pycom Universal IP67 Case for Pycom boards](https://www.adafruit.com/product/3690)
[If you have a Pycom board](https://www.adafruit.com/?q=pycom), you probably want to stick it outside. How to do that safely? Behold the **Universal IP67 Case**!&nbsp;[Pycom](https://pycom.io)&nbsp;designed their own waterproof enclosure with thoughtful...

In Stock
[Buy Now](https://www.adafruit.com/product/3690)
[Related Guides to the Product](https://learn.adafruit.com/products/3690/guides)
### SMA to uFL/u.FL/IPX/IPEX RF Adapter Cable

[SMA to uFL/u.FL/IPX/IPEX RF Adapter Cable](https://www.adafruit.com/product/851)
This RF adapter cable is super handy for anyone doing RF work. Often times, small electronics save space by having a pick-and-placeable u.FL connector (also called uFL, IPEX, IPAX, IPX, MHF, and AM). But most antennas have SMA or RP-SMA connectors on them. This little cable will bridge the...

In Stock
[Buy Now](https://www.adafruit.com/product/851)
[Related Guides to the Product](https://learn.adafruit.com/products/851/guides)
### GPS Antenna - External Active Antenna - 3-5V 28dB 5 Meter SMA

[GPS Antenna - External Active Antenna - 3-5V 28dB 5 Meter SMA](https://www.adafruit.com/product/960)
Give your Ultimate GPS V3 a boost with this external active antenna. This GPS antenna draws about 10mA and will give you an additional 28 dB of gain. It's got a 5 meter long cable so it will easily reach wherever you need it to. The antenna is magnetic so it will stick to the top of a car...

In Stock
[Buy Now](https://www.adafruit.com/product/960)
[Related Guides to the Product](https://learn.adafruit.com/products/960/guides)

## Related Guides

- [Adafruit Feather M4 Express](https://learn.adafruit.com/adafruit-feather-m4-express-atsamd51.md)
- [Adafruit AirLift - ESP32 WiFi Co-Processor Breakout](https://learn.adafruit.com/adafruit-airlift-breakout.md)
- [Adafruit Metro M4 Express AirLift (WiFi)](https://learn.adafruit.com/adafruit-metro-m4-express-airlift-wifi.md)
- [NeoPixel LED Mickey Ears](https://learn.adafruit.com/neopixel-led-mickey-ears.md)
- [Animatronic Cosplay Wings](https://learn.adafruit.com/animatronic-cosplay-wings.md)
- [Make It Glow With Crickit](https://learn.adafruit.com/make-it-glow-with-crickit.md)
- [Controlling Objects in Unity with a 9 DoF Sensor and Arduino](https://learn.adafruit.com/controlling-objects-in-unity-with-arduino.md)
- [Halloween Countdown Display Matrix](https://learn.adafruit.com/halloween-countdown-display-matrix.md)
- [Cellular Data for CircuitPython with FONA](https://learn.adafruit.com/cellular-data-for-circuitpython-with-fona.md)
- [CircuitPython displayio Setup for TFT FeatherWings](https://learn.adafruit.com/using-circuitpython-displayio-with-a-tft-featherwing.md)
- [Alternative languages for programming the SAMD51 boards](https://learn.adafruit.com/alternative-languages-for-programming-samd-boards.md)
- [Cyber Cat MIDI Keyboard](https://learn.adafruit.com/midi-cyber-cat-keyboard.md)
- [Deco Two-Key Feather Macro Pad](https://learn.adafruit.com/deco-two-key-keypad-macropad-circuitpython-feather.md)
- [MIDI for Makers](https://learn.adafruit.com/midi-for-makers.md)
- [MakeCode Arcade with SAMD51 M4](https://learn.adafruit.com/makecode-arcade-with-samd51-m4.md)
- [CircuitPython Libraries with the Binho Nova Multi-Protocol USB Host Adapter](https://learn.adafruit.com/circuitpython-with-binho-nova-multi-protocol-usb-host-adapter.md)
- [Simple Mini Fume Extractor](https://learn.adafruit.com/simple-mini-fume-extractor.md)
- [Air Quality Sensor 3D Printed Enclosure](https://learn.adafruit.com/air-quality-sensor-silo-house.md)
