Development of a CO Gas Detection Device in a Car Cabin Based on ESP32 and MQ-7 Sensor

https://doi.org/10.5614/joki.2026.18.2.12

Authors

  • Fikri Bangun Nugraha Automotive Engineering Technology, Politeknik Transportasi Darat Indonesia, Bekasi, 17520, Indonesia
  • Novita Sari Automotive Engineering Technology, Politeknik Transportasi Darat Indonesia, Bekasi, 17520, Indonesia
  • Hari Boedi Wahjono Automotive Engineering Technology, Politeknik Transportasi Darat Indonesia, Bekasi, 17520, Indonesia

Keywords:

car cabin, carbon monoxida, ESP32, haptic notification, MQ-7

Abstract

Carbon monoxide (CO) is an invisible, odorless toxic gas that human senses cannot easily identify on their own. Inside a vehicle cabin, exposure to this gas may threaten occupant health, especially when dense traffic conditions allow exhaust emissions to build up. This work focuses on designing and building a cabin-based CO monitoring device that relies on an ESP32 microcontroller together with an MQ-7 sensor, combined with visual, audio, and haptic alerts. A Research and Development (R&D) method following the 4D model guided the project. Two testing phases were carried out: assessing the device's response and evaluating its on-vehicle performance across normal and simulated-congestion scenarios. Findings show an average detection time of 26.46 seconds, a notification-activation time of 5.32 seconds, and a sensor reading delay of 2.79 seconds. During performance testing, CO levels reached 9.9 ppm in normal conditions and climbed to 20.5 ppm under simulated congestion. Overall, the device can track rising CO concentrations in real time and issue early warnings to vehicle occupants.

References

P. T. B. S. Branco, A. J. S. Pinto, and S. I. V. Sousa, “Characterising indoor air quality in private vehicle cabins under unprecedented traffic conditions during COVID-19 lockdown,” Build. Environ., vol. 262, p. 111797, Aug. 2024. https://doi.org/10.1016/j.buildenv.2024.111797

D. Wei, F. Nielsen, H. Karlsson, L. Ekberg, and J. O. Dalenbäck, “Vehicle cabin air quality: influence of air recirculation on energy use, particles, and CO2,” Environ. Sci. Pollut. Res. Int., vol. 30, no. 15, pp. 43387–43402, Mar. 2023. https://doi.org/10.1007/s11356-023-25219-x

T. J. Teleszewski, K. Gładyszewska-Fiedoruk, and J. Kropiewnicki, “Analysis of carbon monoxide concentration in a single-car garage depending on the method of parking the car - case study,” Results in Engineering, vol. 31, p. 111388, Sep. 2026. https://doi.org/10.1016/j.rineng.2026.111388

B. Xu, X. Chen, and J. Xiong, “Air quality inside motor vehicles’ cabins: A review,” Indoor and Built Environment, vol. 27, no. 4, pp. 452–465, Apr. 2018. https://doi.org/10.1177/1420326X16679217

R. J. Zhao et al., “Bicycle lanes to improve road user safety and urban air quality,” IOP Conf. Ser. Earth Environ. Sci., vol. 771, no. 1, p. 012032, May 2021. https://doi.org/10.1088/1755-1315/771/1/012032

A. Nugroho, J. Wirayudatama, D. Mugisidi, and A. Fikri, “Analisa Dampak Emisi Gas Buang Pada Kualitas Udara,” METALIK : Jurnal Manufaktur, Energi, Material Teknik, vol. 4, no. 2, pp. 94–97, Sep. 2025. https://doi.org/10.22236/metalik.v4i2.20766

G. Savioli et al., “Carbon Monoxide Poisoning: From Occupational Health to Emergency Medicine,” J. Clin. Med., vol. 13, no. 9, p. 2466, May 2024. https://doi.org/10.3390/jcm13092466

H. Kinoshita et al., “Carbon monoxide poisoning,” Toxicol. Rep., vol. 7, p. 169, Jan. 2020. https://doi.org/10.1016/j.toxrep.2020.01.005

N. Sari, S. W. Praja, and B. Hidayat, “IOP Conference Series: Earth and Environmental Science Level of gas emissions of passenger car on climb road segment Level of gas emissions of passenger car on climb road segment,” IOP Conf. Ser.: Earth Environ. Sci, vol. 179, p. 12028, 2018. https://doi.org/10.1088/1755-1315/179/1/012028

B. E. Hyson, B. M. Friedman, B. Spear, and S. C. Bishop-Freeman, “Lethal carbon monoxide generated from small internal combustion engines,” J. Anal. Toxicol., vol. 48, no. 8, pp. 625–629, Oct. 2024. https://doi.org/10.1093/jat/bkae049

G. Ramponi et al., “The diagnostic accuracy of carbon monoxide pulse oximetry in adults with suspected acute carbon monoxide poisoning: a systematic review and meta-analysis,” Front. Med. (Lausanne)., vol. 10, p. 1250845, Dec. 2023. https://doi.org/10.3389/fmed.2023.1250845

M. Afzal et al., “Carbon Monoxide Poisoning: Diagnosis, Prognostic Factors, Treatment Strategies, and Future Perspectives,” Diagnostics 2025, Vol. 15, Page 581, vol. 15, no. 5, p. 581, Feb. 2025. https://doi.org/10.3390/diagnostics15050581

T. Oshima, A. Sasao, H. Sekijima, and H. Kotani, “A case of carbon monoxide poisoning before a vehicle fire: Availability of volatile hydrocarbons analysis,” Leg. Med., vol. 60, p. 102174, Feb. 2023. https://doi.org/10.1016/j.legalmed.2022.102174

C. Zaba, P. Świderski, K. Sommerfeld-Klatta, Z. Zaba, K. Pluta-Hadas, and M. Urbaniak, “Suicidal Carbon Monoxide Poisoning Using Motor Vehicle Exhaust in an Open Space,” Medical Principles and Practice, vol. 28, no. 5, pp. 490–492, Sep. 2019. https://doi.org/10.1159/000500009

W. H. Organization, “WHO global air quality guidelines: particulate matter (PM2.5 and PM10), ozone, nitrogen dioxide, sulfur dioxide and carbon monoxide,” Particulate matter (PM2.5 and PM10), ozone, nitrogen dioxide, sulfur dioxide and carbon monoxide, pp. 1–360, Sep. 2021, Accessed: Sep. 02, 2026. [Online]. Available: https://iris.who.int/handle/10665/345329

“MQ-7B Carbon Monoxide Sensor--Winsen.” . [Online]. Available: https://www.winsen-sensor.com/sensors/co-sensor/mq-7b.html. [Accessed: Sep. 05, 2026]

D. Kurniawan, S. R. Sulistiyanti, and U. Murdika, “sistem pemantau gas karbon monoksida (CO) dan karbon dioksida (CO2) menggunakan sensor MQ7 dan MQ-135 terintegrasi Telegram,” Jurnal Informatika dan Teknik Elektro Terapan, vol. 11, no. 2, Apr. 2023. https://doi.org/10.23960/jitet.v11i2.2963

L. M. Easterline, A. A. Z. R. Putri, P. S. Atmaja, A. L. Dewi, and A. Prasetyo, “Smart air monitoring with IoT-based MQ-2, MQ-7, MQ-8, and MQ-135 sensors using NodeMCU ESP32,” Procedia Comput. Sci., vol. 245, pp. 815–824, Jan. 2024. https://doi.org/10.1016/j.procs.2024.10.308

F. Fachri Nurmay Rohmah Dinnul Haq and K. D. I. Kurniawan Dwi Irianto, “Indoor air quality system : A design of monitoring CO and CO2 substances for elderly home using IoT,” The Indonesian Journal of Computer Science, vol. 13, no. 5, Oct. 2024. https://doi.org/10.33022/ijcs.v13i5.4408

H. Suhendar, W. Indrasari, S. G. Muqita, and I. G. A. Isnaini, “Development of a real-time gas concentration measurement system using Internet of Things-based monitoring,” Spektra: Jurnal Fisika dan Aplikasinya, vol. 9, no. 1, pp. 27–38, Apr. 2024. https://doi.org/10.21009/SPEKTRA.091.03

M. Galvani, S. Freddi, and L. Sangaletti, “Disclosing fast detection opportunities with nanostructured chemiresistor gas sensors based on metal oxides, carbon, and transition metal dichalcogenides,” Sensors (Basel), vol. 24, no. 2, p. 0, Jan. 2024. https://doi.org/10.3390/s24020584

S. P. Trisnanti, M. Yantidewi, and U. A. Deta, “Carbon monoxide (CO) level measurement using Internet of Things (IoT) based drone with NodeMCU ESP32,” Protek : Jurnal Ilmiah Teknik Elektro, vol. 11, no. 3, pp. 214–219, Sep. 2024. https://doi.org/10.33387/protk.v11i3.6237

M. Sreerama Murty, S. Rao Dhanikonda, P. Sowjanya, P. Jagdish Kumar, N. S. Chandra, and C. Dastagiraiah, “Smart gas leakage detector using IoT sensors,” International Journal of Intelligent Systems and Applications in Engineering, vol. 12, no. 4, pp. 2613–2620, Aug. 2024. https://ijisae.org/index.php/IJISAE/article/view/6688

S. I. Noubissie Tientcheu, S. Du, and K. Djouani, “Review on haptic assistive driving systems based on drivers’ steering-wheel operating behaviour,” Electronics 2022, Vol. 11, Page 2102, vol. 11, no. 13, p. 2102, Jul. 2022. https://doi.org/10.3390/electronics11132102

Published

2026-10-21

How to Cite

[1]
F. B. Nugraha, N. Sari, and H. B. Wahjono, “Development of a CO Gas Detection Device in a Car Cabin Based on ESP32 and MQ-7 Sensor”, JOKI, vol. 18, no. 2, pp. 331-347, Oct. 2026.