I really like being able to see an air quality index (AQI) value, as I find it more readable than just reading a PM2.5 value. So to start with, you will convert the SEN66's PM2.5 value to AQI. But in order to do that, you need to create a new feed. You need this new blank feed to store the AQI value to it. In the top navigation, click on the Feeds link. Then, on this page, click the New Feed button.
Then create a feed called AQM AQI Value, give it a description, and click the Create button.
Now create this first Action. Go to Actions in the top navigation, and click the New Action button.
Then give this action a title of AQM AQI Calculator, and an optional description.
This first action is mostly just mapping the PM2.5 value to spit out the correct AQI value. The action looks a lot more complicated than it really is. A lot of copying and pasting of blocks will make quick work of setting this one up.
This action will trigger any time there is new PM2.5 data from the SEN66, convert it to AQI, and store it in the feed we just created.
If you aren't sure how to use Adafruit IO Actions, please check out this guide: https://learn.adafruit.com/how-to-use-blockly-for-actions-on-adafruit-io
Make sure to click the Save and Run button at the top, then go back to the Actions page. Now to create a new action to show all of this data on the 20x4 Character Display.
Create a new action called AQM 20x4, and give it a description (optional).
This action will trigger it anytime the SEN66 PM2.5 feed gets new data. Set variables within the action to whichever of the SEN66 you would like displayed. In my case, I want to see the CO2, the new AQI feed we just created, and humidity.
If you chose to add NeoPixel Sticks to your builds, you will need to create another action to set these colors. I called this action AQI Categories, to break down the AQI numbers into their respective categories, then it will set the NeoPixel Stick colors based on these categories.
AIO+ Bonus: Outside AQI
If you have Adafruit IO+, you can utilize the new Air Quality Power-Up. In the top navigation, click on Power-Ups, then click Get Started on the Air Quality Power-Up.
From here, you will need to add a location to track, and choose which Data Provider to use. If you are in the US, choose AirNow, and if you are outside of the US, choose Open-Meteo. Once you have created the new location, you should see it in the left side of the Power-Up.
Now, go back to the 20x4 Action previously worked on, and make the following updates:
You should now see indoor and outdoor AQI on your display!
Page last edited October 03, 2025
Text editor powered by tinymce.