Recently I am more concerned about the air quality at home. I will pay for the service of cleaning the furnace and plumbing soon, and I want a way to determine if there are any measurable impacts or changes. Fortunately, using the SDS011 sensor, raspberry pie With some software, I can create a simple home air quality monitor. This is how it is done.
What do you need for this project
How to make a Raspberry Pi home air quality monitor
Before you start, make sure you have set up Raspberry Pi OS.If you have not done this before, please refer to our article on how to do it Setting up the Raspberry Pi First time or how to do it Headless Raspberry Pi installation (There is no keyboard and screen).
1. Install git, Which will allow us to clone the code from github.com
sudo apt-get update && sudo apt-get install -y git
2. Clone repository With sample code. This code is responsible for communicating with the sensor and setting up a simple server to monitor your home network.
cd ~/ git clone https://github.com/rydercalmdown/pi_air_quality_monitor.git
3. Run the install command After entering the warehouse. This will be responsible for installing all the basic dependencies, such as Docker and Docker Compose, to make the project run.
cd pi_air_quality_monitor make install
4. Run the build command to build the docker image. This may take some time, depending on your Raspberry Pi.
5. Connect the SDS011 sensor to the USB adapter It comes with the provided jumper cable.
6. Connect the SDS011 USB adapter to your Raspberry Pi. You may see flashing red lights, but if not, don’t worry.
7. Mount the SDS011 sensor and your Raspberry Pi on a small piece of wood. This step is optional, you can also use cases, but I like the open-air appearance of the system. If the sensor is installed inside the component, make sure that the air inlet is connected to the outside of the housing.
8. Run the server Start measuring.
9. Navigate to your Pi’s IP address on port 8000 Check the web server and a small graph of recent air quality measurements. You will see a chart.
In this sensor Raspberry Pi Project Two indicators are measured: PM2.5 and PM10. PM stands for particulate matter, and the following number is the number of microns, 2.5 or 10. If PM2.5 particles contain toxic substances, it is particularly harmful to your health.
This server shows running measurements for the past 30 minutes, but can be easily adjusted to perform more operations. I will compare my values from now until my HVAC system is cleaned, hoping I will see measurable differences. After that, I will put it in a waterproof box to measure the air quality outside and let me understand how it changes over time.