Build and learn
September 12, 2024

Breathe easy: how home automation can improve your air quality

Joyce Lin
Head of Developer Relations

Most people tend to avoid outdoor pollution, but indoor air quality can be just as impactful to our health. In particular, elevated levels of PM2.5 (fine particulate matter with a diameter of 2.5 micrometers or less) negatively impact our cardiovascular and respiratory systems. 

I live in California, and during seasonal wildfires, I keep my windows tightly shut to avoid particulate matter. But common activities like cooking and burning candles can also increase these levels in your home. And even old appliances can be a culprit.

So what can you do?

Home automation is one way to monitor and improve your indoor air quality, like with air purifiers that automatically adjust based on connected sensors that provide real-time updates on air quality. By integrating a few basic components, you can effortlessly reduce allergens, dust, and pollutants—helping you breathe easier without lifting a finger.

Three parts of a smart home system

Like other Internet of Things (IoT) systems, a smart home system typically consists of three components.

  • Sensors: These are components that perceive its environment by detecting inputs. In our air quality monitoring example, we have an air sensor to detect fine particulate matter in the surrounding air.
  • Actuators: These are the components that perform actions based on decisions made by the system’s controller. In our example, we have a smart plug to run a box fan air filter.
  • Controller: This is the brain that processes data from the sensors and makes decisions based on pre-programmed logic, sending commands to the actuators. In this example, we can use a Raspberry Pi or microcontroller.

With these basic components, you can wire up an automated air filtration system that periodically checks the values of the air in your home, and triggers the air filter (like a Corsi-Rosenthal box) once levels of particulate matter rise above a certain threshold.

Build your own automated air filtration with air quality sensors

If you’re interested in setting up something similar in your own home or office, follow along with this step-by-step tutorial to automate air filtration with air quality sensors.

Air monitoring device with PMS-7003 air sensor and Raspberry Pi 5
Air monitoring device with PMS-7003 air sensor and Raspberry Pi 5

Next-level air quality monitoring

Once you create an air quality monitoring system, you can further customize it. Suggestions for next-level projects include the following:

Temperature sensors showing fluctuations in the Viam office in NYC
Temperature sensors showing fluctuations in the Viam office in NYC

Build a network of sensors

You can also scale up your air monitoring system by setting up more sensors or different types of sensors.

fleet of air quality sensors across different locations
Fleet of air quality sensors across different locations

What are you building next?

If you build your own air monitoring system, or some other helpful home automation, share it with the Viam Discord community in the #built-on-viam channel. Now is the time to automate all the things!

twitter iconfacebook iconlinkedin iconreddit icon

Find us at our next event

Apr 3, 2025
Apr 3, 2025
,

DotJS

In Person
Paris, France
JavaScript developers are invited to join Viam in Paris to learn how to overcome challenges of working with code in the physical world.
Join Us
Apr 15, 2025
Apr 15, 2025
,
03:00-04:00 PM EST

LIVESTREAM: Build a self-checkout with computer vision

Virtual
Build a real-time people detector using computer vision and a piezo buzzer with Adrienne and Nick from Viam's DevRel team in this hands-on livestream.
Watch live!
Apr 17, 2025
Apr 17, 2025
,
06:30 - 09:30 PM EST

NY Hardware April 2025 MeetUp

In Person
1900 Broadway Floor 6 New York, NY
Join us at the Viam office for the next NY Hardware Meetup! Viam Product Manager, Esha Maharishi, will be doing a live demo, and there will be plenty of time to connect with fellow hardware enthusiasts. Whether you're deep in the industry or just curious, come by for great conversations, hands-on tech, and free food and drinks!
Sign Up