Hardware:

Raspberry Pi 4

Power supply

PM SDS011 Laser Air Quality monitor. I bought this one: https://es.aliexpress.com/item/1005005970932495.html

Removable USB stick to store the data

Step 1: Set Up Your Raspberry Pi

  1. Install Raspberry Pi OS:

  2. Set Up Network and SSH:

    Select Interface Options > SSH > Enable.

     ```bash
     sudo raspi-config
     
     ```
    

Step 2: Install System Dependencies

  1. Update your system:

    sudo apt update && sudo apt upgrade -y
    
    
  2. Install required dependencies:

    sudo apt install python3 python3-pip python3-venv git -y
    
    

Step 3: Set Up the Project Directory and Virtual Environment

  1. Create a project directory:

    mkdir ~/py-sds011 && cd ~/py-sds011
    
    
  2. Set up a virtual environment:

    python3 -m venv myenv
    source myenv/bin/activate
    
    
  3. Install required Python packages inside the virtual environment:

    pip install flask chart-studio sds011 psutil
    
    

Step 4: Connect the SDS011 Sensor

  1. Plug in your SDS011 sensor via USB.