📄 Sciences Methods and Technologies
International Journal (SciMeTech)

Volume 1 · Issue 2 · 2025
ISSN: 3085-5284
Smart Indoor Air Quality Monitoring System Using an ESP32 Microcontroller with DHT11 and MQ135 Sensors
Salma Lamribah, Imane Mahaimeur
Pages 32–36 · Ecole Supérieure de Technologie d'Essaouira, Department of Mathematics and Computer Science, Cadi Ayyad University, Essaouira, Morocco · Polydisciplinary Faculty, Laboratory of Physics, Energy, Environment and Applications, Cadi Ayyad University, Sidi Bouzid, B.P. 4162, Safi, Morocco
Abstract
Indoor air pollution is a growing concern, especially given the significant amount of time people spend indoors. This paper presents a smart air quality monitoring system based on the ESP32 microcontroller, which integrates DHT11 and MQ135 sensors to track temperature, humidity, and harmful gas levels in real time. The collected data is visualized via a web dashboard that refreshes every 5 seconds and includes dynamic alerts to inform users about air quality levels. Designed to be low-cost and user-friendly, this system supports healthier environments in homes, schools, and small offices. While the system is effective, limitations such as sensor accuracy and power dependency offer avenues for future improvement.
Keywords: IoT, ESP32, Air Quality, Sensors, Web Dashboard

References

  1. Jones, A. P. (1999). Indoor air quality and health. Atmospheric Environment, 33(28), 4535-4564. https://doi.org/10.1016/S1352-2310(99)00272-1
  2. Klepeis, N. E., Nelson, W. C., Ott, W. R., Robinson, J. P., Tsang, A. M., Switzer, P., Behar, J. V., Hern, S. C., & Engelmann, W. H. (2001). The National Human Activity Pattern Survey (NHAPS): A resource for assessing exposure to environmental pollutants. Journal of Exposure Analysis and Environmental Epidemiology, 11(3), 231-252. https://doi.org/10.1038/sj.jea.7500165
  3. Kumar, P., Skouloudis, A. N., Bell, M., Viana, M., Carotta, M. C., Biskos, G., & Morawska, L. (2016). Real-time sensors for indoor air monitoring and challenges ahead in deploying them to urban buildings. Science of the Total Environment, 560-561, 150-159. https://doi.org/10.1016/j.scitotenv.2016.04.032
  4. Kumar, P., Morawska, L., Martani, C., Biskos, G., Neophytou, M., Di Sabatino, S., Bell, M., Norford, L., & Britter, R. (2015). The rise of low-cost sensing for managing air pollution in cities. Environment International, 75, 199-205. https://doi.org/10.1016/j.envint.2014.11.019
  5. Morawska, L., Thai, P. K., Liu, X., Asumadu-Sakyi, A., Ayoko, G., Bartonova, A., et al. (2018). Applications of low-cost sensing technologies for air quality monitoring and exposure assessment: How far have they gone? Environment International, 116, 286-299. https://doi.org/10.1016/j.envint.2018.04.018
  6. Atzori, L., Iera, A., & Morabito, G. (2010). The Internet of Things: A survey. Computer Networks, 54(15), 2787-2805. https://doi.org/10.1016/j.comnet.2010.05.010
  7. Gubbi, J., Buyya, R., Marusic, S., & Palaniswami, M. (2013). Internet of Things (IoT): A vision, architectural elements, and future directions. Future Generation Computer Systems, 29(7), 1645-1660. https://doi.org/10.1016/j.future.2013.01.010
  8. Al-Fuqaha, A., Guizani, M., Mohammadi, M., Aledhari, M., & Ayyash, M. (2015). Internet of Things: A survey on enabling technologies, protocols, and applications. IEEE Communications Surveys & Tutorials, 17(4), 2347-2376.
  9. Zanella, A., Bui, N., Castellani, A., Vangelista, L., & Zorzi, M. (2014). Internet of Things for smart cities. IEEE Internet of Things Journal, 1(1), 22-32. https://doi.org/10.1109/JIOT.2014.2306328
  10. Stojkoska, B. L. R., & Trivodaliev, K. V. (2017). A review of Internet of Things for smart home: Challenges and solutions. Journal of Cleaner Production, 140, 1454-1464. https://doi.org/10.1016/j.jclepro.2016.10.006
  11. Sicari, S., Rizzardi, A., Grieco, L. A., & Coen-Porisini, A. (2015). Security, privacy and trust in Internet of Things: The road ahead. Computer Networks, 76, 146-164.
  12. Maier, A., Sharp, A., & Vagapov, Y. (2017). Comparative analysis and practical implementation of the ESP32 microcontroller module for the Internet of Things. 2017 Internet Technologies and Applications (ITA), 143-148. https://doi.org/10.1109/ITECHA.2017.8101926
  13. Babiuch, M., Foltynek, P., & Smutny, P. (2019). Using the ESP32 microcontroller for data processing. 2019 20th International Carpathian Control Conference (ICCC), 1-6. https://doi.org/10.1109/CarpathianCC.2019.8765944
  14. Guarnieri Calò Carducci, C., Monti, A., Schraven, M. H., Schumacher, M., & Müller, D. (2019). Enabling ESP32-based IoT applications in building automation systems. 2019 II Workshop on Metrology for Industry 4.0 and IoT (MetroInd4.0eIoT), 306-311. https://doi.org/10.1109/METROI4.2019.8792852
  15. Kareem, H., & Dunaev, D. (2021). The working principles of ESP32 and analytical comparison of using low-cost microcontroller modules in embedded systems design. 2021 4th International Conference on Circuits, Systems and Simulation (ICCS), 130-135. https://doi.org/10.1109/ICCSS51193.2021.9464217
  16. Espressif Systems. (2023). ESP32 series datasheet [Technical documentation]. Espressif Systems. https://www.espressif.com/en/support/documents/technical-documents