How to build a DIY air quality sensor @Grist
How to build a DIY air quality sensor  @Grist
Uploaded September 2019 | Updated September 2026, 51 minutes ago
I built a DIY air pollution sensor from a Raspberry Pi. Here's how you can, too!

Also, check out our video on how air sensor tech is changing how we see pollution in cities here:
youtube.com/watch?v=s_Rf7PHjdxI

Shopping list:
Raspberry Pi Zero WH (cuts out the hammering step)
adafruit.com/product/3708

Pimoroni Enviro+ pHat
shop.pimoroni.com/products/enviro-plus

PMS5003 Particulate Matter Sensor
shop.pimoroni.com/products/pms5003-particulate-matter-sensor-with-cable

Accessories:
pHat standoff screws are helpful for supporting your pHat, so it doesn't bend the pins:
adafruit.com/product/2337?gclid=EAIaIQobChMIjrnYofC35AIVmMVkCh33kQgEEAQYAiABEgJcFvD_BwE

If you're not buying the pre-soldered pin connector, a solderless pin connector and hammer jig is an easy alternative. This is what was used in the video:
adafruit.com/product/3413?gclid=EAIaIQobChMIhsaQhfC35AIVicpkCh0DnQjjEAQYAiABEgLwhfD_BwE

And if you're just getting started with Raspberry Pi, you'll need some basic accessories to get set up. This can vary, based on how much you want to spend and personal preferences. Here's a helpful guide on things you'll need to get started:
projects.raspberrypi.org/en/projects/raspberry-pi-setting-up


Instructions:
I used Pimoroni's instruction manual for this build. You can find that here:
learn.pimoroni.com/tutorial/sandyj/getting-started-with-enviro-plus

And if you have any questions, you could check out Pimoroni's help forum:
forums.pimoroni.com/c/support

And, as promised, here's what I typed in the terminal:

Installing the Python library from Pimoroni:
Once you've got your sensor put together, boot it up and type this into the terminal:
"git clone github.com/pimoroni/enviroplus-python
cd enviroplus-python
sudo ./install.sh"

Running the Python script:
Once everything's downloaded, you'll want to run the "All in One" example in the Python library. You'll do that by typing the address of that file into the terminal. For me, that was:
"/home/pi/enviroplus-python/examples/all-in-one.py"
But this might vary based on where you store your python library file.

Once the program is running, the sensor data should display on the tiny LCD screen on the pHat. You can tap the little light sensor and it will toggle through all the different sensor outputs until you get to particulate matter.

Thanks for watching!
-Jesse

#diy #airsensor #howto #airpollution #raspberrypi #airquality #smoke #airquality #AQI
How to build a DIY air quality sensorThe Paris climate agreement, explained (5 years later)North Carolinians fight the $7.5 billion Atlantic Coast PipelineWhat happens to traffic when you tear down a freeway?Geoengineering, explainedPFAS, explainedHow to make blackberry sauce | Grist Test KitchenWe tried a bunch of meal delivery kits, and here’s what we thinkCould a video game help us solve climate change?Turning e-waste into good jobsCould this cell help replace fertilizer?Settlers of Catan expansion Crop Trust, reviewed
Grist |

How to build a DIY air quality sensor

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER