Indonesian Journal of Electrical Engineering and Computer Science Vol. 32, No. 2, November 2023, pp. 715~724 ISSN: 2502-4752, DOI: 10.11591/ijeecs.v32.i2.pp715-724 715 Journal homepage: http://ijeecs.iaescore.com Microcontroller-based air quality monitoring design using mamdani fuzzy method Hari Agus Sujono, Riny Sulistyowati, Wahyu Agung Satriya Department of Electrical Engineering, Faculty of Electrical Engineering and Information Technology, Institut Teknologi Adhi Tama Surabaya, Surabaya, Indonesia Article Info ABSTRACT Article history: Received Jul 4, 2023 Revised Jul 13, 2023 Accepted Aug 13, 2023 Hazardous gases such as carbon monoxide (CO) and sulfur dioxide (SO2) not only emerge in the outdoor environment but also inside the house or factory which will endanger the occupants or workers. The detection devices are mainly found on public roads since detected gas mostly consists of CO and SO2. The design of air quality monitoring devices is proposed with applied sensors such as TGS2201 and MQ136. The device, when activated, will detect the gas components in the room. The results of the detection will be displayed in the value of gas concentration and quality. If the concentration exceeds the specified threshold, the fan will act to neutralize the contained air. Fuzzy logic is applied with the membership function using the Sugeno model. The test is applied in the box with maximum air pollution of 80 ppm according to the motor vehicle gas, and out of the box at a public road with maximum air pollution of 51 ppm. Each method has the differences of 29 ppm. Keywords: CO and SO2 Fuzzy logic Microcontroller MQ136 TGS2201 This is an open access article under the CC BY-SA license. Corresponding Author: Hari Agus Sujono Department of Electrical Engineering, Faculty of Electrical Engineering and Information Technology Institut Teknologi Adhi Tama Surabaya Arief Rahman Hakim Street 100, Sukolilo 60117, Surabaya, Indonesia Email: hari.agus17@itats.ac.id 1. INTRODUCTION Air pollution results from incomplete combustion, in which the process produces harmful gases which are often found to be carbon monoxide (CO) and sulfur dioxide (SO2). It is very difficult indeed to reduce the level of production of these gases. This is because these two types of gas are produced from exhaust emissions of motor vehicles and industry [1]–[3]. Air pollution is defined as a decrease in air quality so that the quality of the air decreases when it is used and finally it cannot be used as it should according to its function. Air pollution is a problem that worries many people lately. The impact of air pollution is very dangerous for health. Various efforts have been made by the government to overcome this problem [4]–[11]. Currently, the tool for monitoring air quality is the air pollutant standard index (APSI) board. This tool is very expensive and the method of notification to the surrounding community is not timely. The APSI which is reported to the public applies 24 hours in the future, i.e. the notification is only once a day by taking the average value of the measurements [11]–[24]. The purpose of this research is to design a tool for continuous monitoring and early warning of air pollution levels using the fuzzy logic method with TGS2201 and MQ136. This tool is monitored via personal computer which later can be monitored continuously and can be implemented in areas densely packed with motorized vehicles [25]–[28].