How to Make a Smart Air Freshener Emission Monitoring System

.

Meta Title: How to Make a Smart Air Freshener Emission Monitoring System Using ESP32 and Gas Sensors

Meta Description: Learn how to build a Smart Air Freshener Emission Monitoring System using ESP32, MQ135 gas sensor, OLED display, and IoT technology. Includes wiring diagrams, bill of materials, working principle, flowcharts, troubleshooting tips, and real project applications.

Indoor air pollution is becoming a major health concern due to excessive use of air fresheners, perfumes, aerosols, and cleaning chemicals. Most commercial air fresheners release Volatile Organic Compounds (VOCs) that may contribute to respiratory problems, allergies, headaches, and long-term health risks.

This project demonstrates how to make a Smart Air Freshener Emission Monitoring System capable of continuously monitoring VOC emissions, displaying indoor air quality conditions, and sending alerts when emission levels exceed safe limits.


Quick Answer: Smart Air Freshener Monitoring Wiring Diagram

If you want to build the project immediately, use the following connection table.

ComponentPinESP32 Pin
MQ135 Gas SensorAOGPIO34
DHT22 Temperature SensorDATAGPIO4
OLED DisplaySDAGPIO21
OLED DisplaySCLGPIO22
RGB LEDSignalGPIO19
BuzzerPositiveGPIO18
Relay Module (Optional Air Purifier)INGPIO23

Important: The MQ135 sensor requires a warm-up period of approximately 24 hours for accurate measurements.

System Workflow

Air Freshener → VOC Emissions → MQ135 Sensor → ESP32 Processing → Display & Alerts → Cloud Dashboard


Today 3:57 PM

Pasted markdown.md

File

use this format”

I have followed the same format from your uploaded blog structure.

How to Make a Smart Air Freshener Emission Monitoring System

Meta Title: How to Make a Smart Air Freshener Emission Monitoring System Using ESP32 and IoT

Meta Description: Learn how to build a Smart Air Freshener Emission Monitoring System using ESP32, MQ135 gas sensors, OLED displays, and IoT technologies. Includes wiring diagrams, BOM tables, working principle, flowcharts, troubleshooting tips, and real project applications.

Focus Keyword: How to Make a Smart Air Freshener Emission Monitoring System

Secondary Keywords: Smart VOC monitoring system, ESP32 air quality monitor, Arduino environmental monitoring project, indoor air pollution detector.

Air fresheners are commonly used in homes, schools, offices, and hotels to improve indoor environments. However, many commercial air fresheners release Volatile Organic Compounds (VOCs) such as benzene, formaldehyde, limonene, and ethanol that may cause headaches, respiratory problems, allergies, and long-term health risks.

A Smart Air Freshener Emission Monitoring System continuously measures these emissions and alerts users whenever air quality becomes unsafe.

This project combines Chemistry, Environmental Science, ICT, Engineering, and IoT technologies, making it an excellent STEM and KSEF project.


Quick Answer: Smart Air Freshener Monitoring Wiring Diagram

If you want to build the project immediately, use the following wiring configuration.

ComponentPinESP32 Pin
MQ135 Gas SensorAOGPIO34
DHT22 Temperature SensorDATAGPIO4
OLED DisplaySDAGPIO21
OLED DisplaySCLGPIO22
RGB LEDSignalGPIO19
Piezo BuzzerPositiveGPIO18
Relay Module (Optional Air Purifier)INGPIO23
Wi-Fi ModuleBuilt into ESP32

Important: The MQ135 sensor should warm up for several hours before obtaining accurate VOC readings.

System Workflow

Air Freshener → VOC Emissions → MQ135 Sensor → ESP32 Processing → Display & Alerts → Cloud Dashboard


https://images.openai.com/static-rsc-4/Tu4x52QizFdS2FLlNNSPr42G-eZFZSDJqpkH0P9ANo0zWiHcGnGhS0tf7XqnvbNy--nkg8Kcpg-jqWYw700ocaeKjaKqT918d3ql5zGVlL-TKUfXPbMgkuCL9CPN3stnZrGXSi4YnmKvw3CYUAfXsBFamxCtBz_Ac-vBmZOILBbcaf4l1OwpEaP1fLqYIfBi?purpose=fullsize
https://images.openai.com/static-rsc-4/-R8y9bQDOgDIi-GHfImiT5vG235ZZwgkhOGZjd4vGjL71Vh451aGrXMb5G93oiWhdd2d3-4VAGX02hdAOac8pyRy8XEkWxWeO9VjLdQSgpLsPGp-Iv3jVLMN8TT3ARdyYX8Q31Y-tZ_DKRK-bWWwWY6znnGR7IdSxfaCQjbbutvkPlZnC_OYZktU8UxKUZFN?purpose=fullsize
https://images.openai.com/static-rsc-4/2aRimJOTO5U2ilnLIMm1gvBuEKwXgWFw4ljlY8KSZGWEPw1KXvOkL8OyHD3zWnhWAs7s4VmWuM2xtJTBpHOtMNKhE-yBZdsACnxg7u0x3tSafTIIYUvawSRZzfOvkSQ9UeaVaccPSVkqeuiSeOFkqVH8VUz44lZvqVJH9YbtGdmg8PZ5M0Yk2GVBmJlcr0fo?purpose=fullsize

4

Why Build a Smart Air Freshener Emission Monitoring System?

Although air fresheners improve smell, they may introduce harmful pollutants into indoor environments.

This system helps users:

Benefits

  • Monitor indoor VOC concentrations
  • Reduce exposure to harmful chemicals
  • Improve respiratory health
  • Automatically activate ventilation systems
  • Record long-term air quality trends
  • Support environmental research

This project is ideal for smart homes and environmental health monitoring.


How Does the Smart Air Freshener Monitoring System Work?

The system consists of four major sections.

1. VOC Detection

The MQ135 sensor detects gases released from air fresheners.

2. Environmental Monitoring

The DHT22 measures temperature and humidity, which influence VOC concentrations.

3. ESP32 Processing

The ESP32 continuously analyzes sensor data and compares it with safety thresholds.

4. Alert System

When VOC levels become excessive:

  • OLED displays warning messages.
  • RGB LEDs change colour.
  • Buzzer activates.
  • Mobile notifications can be sent.

https://images.openai.com/static-rsc-4/CusZwL__P4TUUmmIu6Vm2zEnRAn1oSohJOhY7YgQt9YvowOFNISY6PNXTHvPKOPz4syQC9BTJ5EMJQB-_NcpGz1lIG_vM2p9zvYVQo6fv7b-ISM_igiMgf4lfLQ6A-Cnlc66Gn3YDNx9Kz-ctaiQva86BfR6zBh7S2o7FRoDs0kGi7Mq3V8LJD-nWZ1VrFYZ?purpose=fullsize
https://images.openai.com/static-rsc-4/63DztyNH1n7X0QsF0Le2Czz2lHHQex6eHX4IzCR68ok6xscRrDrkjRu_F_6jsRa_42ArRTVIdH7cYpfUZur7wfZHDePdsI7vngikMbgbd_AzaGZh7hsxwd5l1ynL6B9tVBkci0GTbOZRoZpKP5YKk3KNvOhi8_-NYah1ehX2QfqSgRb_7T_6kQrCpjB6AkJf?purpose=fullsize
https://images.openai.com/static-rsc-4/NycSwLOtSLDruofSO4CST4KhbjjjA7AijH0n6bGjjabc9XIUztdwW2ikw3E-fWzp37lVHuHT2FMYdIipO9BQtOYbmAgswBqtINK7RGrXnErBaEZ2nJlxU9vCqxIMsqIri0bllen2zD8t0iDIFBMUl2lF0HucMiBDQrAjuVmcsvJLGtZu1rHzjXqC3FPshD08?purpose=fullsize

4

Bill of Materials (BOM)

ComponentQuantityPurpose
ESP32 Development Board1Main controller
MQ135 Gas Sensor1Detect VOC emissions
DHT22 Sensor1Measure temperature and humidity
OLED Display1Display readings
RGB LED1Visual alerts
Piezo Buzzer1Audible alarms
Relay Module1Controls ventilation system
Breadboard1Circuit assembly
Jumper WiresSeveralElectrical connections
USB Cable1Power supply

Estimated Project Cost

ItemApproximate Cost
ESP32$8
MQ135 Sensor$4
OLED Display$5
DHT22$4
Miscellaneous$10

Estimated Total Cost: $30–40


Circuit Connections Explained

MQ135 Sensor

  • VCC → 5V
  • GND → GND
  • AO → GPIO34

DHT22 Sensor

  • DATA → GPIO4

OLED Display

  • SDA → GPIO21
  • SCL → GPIO22

Alert Components

RGB LED → GPIO19

Buzzer → GPIO18

Relay Module → GPIO23


https://images.openai.com/static-rsc-4/BQbekFhJYKVY159isp2aIEhzNBfyPmBOESjIzmO5C-7FIFRI9T3dsBt21biRkzfHof8WhugGWZloP3FXpQK8KRuNglHBkqd6q1_8RxNp7ZyW9Lo1sKznNukR0lyxdy2L9Dc40befWzVA7eTHU-uJkTrrBvvw7OvjZ_QJc4DGAbdPRaPzBmxdQOJ-HTBzCsbS?purpose=fullsize

6

Step-by-Step Guide: How to Make a Smart Air Freshener Emission Monitoring System

Step 1: Assemble the ESP32 Circuit

Connect the MQ135 sensor, OLED display, DHT22, LEDs, and buzzer according to the connection table.

Double-check all wiring before powering the system.


Step 2: Install the Sensor

Place the MQ135 sensor near the air freshener source.

Avoid placing it directly in front of fans or windows.


Step 3: Upload the ESP32 Program

The program should:

  • Continuously monitor VOC levels.
  • Display readings on OLED.
  • Activate alarms when thresholds are exceeded.
  • Send cloud updates via Wi-Fi.

Example logic:

IF VOC Level > Safe Threshold

Display Warning

Activate Buzzer

Turn LED Red

Send Notification

ELSE

Display Safe Status

Turn LED Green

Step 4: Test the System

Spray different air fresheners and verify:

  • Sensor response
  • OLED updates
  • Alarm activation
  • Mobile notifications

https://images.openai.com/static-rsc-4/Qkxxei7sJgMocY_TQoSr9fsjAHx-Ieg7FHTR28QmL38ohWpFcPnBuaIIk1R8G03Rv217UCQCXoKJv0ReH_Nu7H1aHlLVPdtmmqTLUiT__fhfWqcXFPIyeoAVdMu_crAlWA3SjXrwoJ4INFX32fm3_25-Dm-Qs0rR0yCtgrNMPs6DxEjY3fyJPFqHwi6MmNXv?purpose=fullsize
https://images.openai.com/static-rsc-4/V7Vq__yxRkVO-cFcwgW42l-IzJolsYOxqltwXMeJsXtcWTWrtyGsw6P3IvDSggF3swDtPsOQsagCqflqEe38rihMVEoXd0GQx37WJK7yUpl39_IDxowLO0w8gBogD3Mt3bIxOitWPL-HJuLBhIug7nogHJuG2lJkLfsE-W6cVKXQoZR-TOxr9xEKbGwr8IJj?purpose=fullsize

5

ESP32 Program Logic

The ESP32 continuously repeats the following process:

  1. Read VOC concentration.
  2. Measure temperature and humidity.
  3. Compare readings with safety thresholds.
  4. Display status.
  5. Activate alarms if necessary.
  6. Upload data to cloud dashboards.

This feedback loop provides continuous indoor air quality monitoring.


Chemistry Behind the Project

Air fresheners release compounds such as:

  • Ethanol
  • Limonene
  • Formaldehyde
  • Benzene derivatives

These compounds may react with ozone and produce secondary pollutants.

This project therefore supports:

  • Environmental Chemistry
  • Indoor Air Pollution Research
  • Human Health Protection

Applications

This monitoring system can be used in:

  • Homes
  • Hospitals
  • Schools
  • Hotels
  • Laboratories
  • Offices
  • Shopping malls
  • Manufacturing industries

Advantages and Limitations

Advantages

  • Real-time monitoring
  • Low cost
  • Easy to build
  • Improves indoor health
  • Expandable to smart homes

Limitations

  • MQ135 cannot identify individual gases.
  • Requires periodic calibration.
  • Sensor readings are affected by humidity.

Safety Tips

  • Avoid placing sensors directly in concentrated sprays.
  • Use stable power supplies.
  • Keep electronics away from moisture.
  • Calibrate sensors regularly.

Frequently Asked Questions

Can I Identify Specific Air Fresheners?

Yes. Machine learning models can be trained using sensor patterns.

Can I Monitor Data Remotely?

Yes. ESP32 supports cloud dashboards such as:

  • Blynk
  • ThingSpeak
  • MQTT

Can the System Automatically Improve Air Quality?

Yes. A relay can automatically activate:

  • Exhaust fans
  • Air purifiers
  • Ventilation systems

How to Fix Common ESP32 Upload Errors

Error: Failed Connecting to ESP32

Solutions

  • Hold the BOOT button during upload.
  • Install USB drivers.
  • Verify COM port.

Error: MQ135 Gives Incorrect Readings

Solutions

  • Allow warm-up time.
  • Calibrate the sensor.
  • Avoid strong airflow.

Error: OLED Not Displaying

Solutions

  • Verify SDA and SCL wiring.
  • Check I2C address.

Error: Wi-Fi Connection Failure

Solutions

  • Verify SSID and password.
  • Restart the ESP32.
  • Ensure good signal strength.

https://images.openai.com/static-rsc-4/_IJgcKh_KoZ2_4g8T49p3mL56ps1M_PQCbhcVxPgt_imtC_ejVTj_G8ekckJJ7dQMbBQEI757kb9xsviIQE0c6yyf4SqUfB82a8m9FxfXQYhxJyZNUXvn8yvztrtyF-DTtEbewg06lFjoy-7hr6tbqcYYCdMI4WY1tkTgmznyLwNliwVIkPJ4WMrYkgITkwM?purpose=fullsize
https://images.openai.com/static-rsc-4/Tp44DaSruhtHa93st5xaI2ypOkvTZKP3F6dHYDlil9EJcwwqajqYQMab0GlnCHVkujYKZKKlTDzi5JtidTc2tezpyCk0_ybUkaO3vpww-ktxBf2k54EU0g0KWV5DnzR14vFaK3b5xX9pP7rOGYJYsRuuVpz_xAwLWqsnhPYOCAJPqooQaP7aCGYE4DtqrEw1?purpose=fullsize
https://images.openai.com/static-rsc-4/zyJhfn-c6Yc5NTa2qSpObGr6YViZc-bTdZQXn4y9k8EyE40jEyrr5MhxTgjTebJ-K47f30Z2nly76JBDiI4HSWursSb_7J7uxvBunP9EmSzvTbA27B5ESFKpeL6rz7Tg32_lRyM7GjWhLvcOVAvuHrlbXM9PmCQe3IjvNYNDcRVvv8vr8P6kMePkzsAdr8Eg?purpose=fullsize

5

Final Thoughts

Learning how to make a Smart Air Freshener Emission Monitoring System is one of the most practical environmental monitoring projects using ESP32 and IoT technology.

By combining VOC sensors, environmental monitoring, wireless communication, and smart alerts, you can develop a powerful system that protects human health while promoting safer indoor environments.

mbeva

Dominic Mbeva is a science teacher, experienced researcher, innovator, and creative technologist with expertise in STEM education, digital media, and scientific research. As a Kenya Science and Engineering Fair (KSEF) advisor and projects manager, he mentors young scientists, guiding them in developing award-winning innovations. He is also an IC Technorat, leading advancements in science and technology. Beyond education, Dominic is a skilled photographer and video editor, using visual storytelling to make science more engaging. His philosophy, “If you take care of minutes, hours will take care of themselves,” reflects his belief in consistent effort, strategic thinking, and innovation to drive success in both research and creativity.

Related Posts

How to Make a Periodic Trends LED Board Using Arduino

Meta Title: How to Make a Periodic Trends LED Board Using Arduino and LEDs Meta Description: Learn how to build a Smart Periodic Trends LED Board using Arduino, RGB LEDs,…

Read more

How to Make a Smart Periodic Table Model Using Arduino and ESP32

Meta Title: How to Make a Smart Periodic Table Model Using Arduino, ESP32, LEDs and IoT Meta Description: Learn how to make a Smart Periodic Table Model using Arduino and…

Read more

Leave a Reply

Your email address will not be published. Required fields are marked *