JOURNAL TECH-E VOL. 8 NO. Online Version Available at: https://jurnal. id/index. php/te JOURNAL OF TECH-E | 2581-1916 (ONLINE) | 2598-7585 (PRINTED) | Article Designing Air Quality Detection Systems with Overthe-Air Firmware Update Methods for Performance Enhancement Nanda Syaputra1*. Ade Silvia Handayani2 Ahmad Taqwa3 1, 2 ,3 State Polytechnic of Sriwijaya. Electrical Engineering. South Sumatra. Indonesia SUBMISSION TRACK A B S T R A C T Recieved: 07, 30, 2024 Final Revision: 08, 07, 2024 Available Online: 08, 08, 2024 Implementing the Over-The-Air (OTA) system, which facilitates wireless and remote updates of software or firmware through internet connectivity, offers a significant advantage by saving both time and effort. This approach allows for firmware updates to be performed directly from any location, eliminating the need to physically visit each device. This is especially advantageous in the manufacturing of air quality monitoring devices, where adjustments to programs and software are often needed, particularly with seasonal Updating firmware manually on numerous devices can be a time-consuming and labor-intensive To address this issue, the proposed device will be designed to support air quality readings and will utilize an internet connection to enable virtual firmware updates. The device will periodically check its program storage for new firmware versions. When a new version is detected, the device will automatically download and install the latest firmware available. This process reduces the need for manual intervention and improves operational Additionally, deploying multiple devices across a large area is crucial for ensuring comprehensive This approach not only simplifies maintenance but also enhances the operational management of air quality monitoring systems. By leveraging OTA technology, the process of updating devices becomes more streamlined, scalable, and efficient, contributing to KEYWORD Over The Air (OTA). Update Firmware. Sofware. Internet. Virtual CORRESPONDENCE E-mail: nandaismea@email. INTRODUCTION Improving air quality has now become one of the top priorities worldwide due to its significant impact on human health and the environment. Air pollution can cause various health problems, including respiratory diseases, as well as disrupt ecosystems and contribute A THE AUTHORS. PUBLISHED BY Buddhi Dharma University DOI: 10. 31253/te. NANDA SYAPUTRA / JOURNAL TECH-E VOL. NO. to climate change. Therefore, accurate and real-time air quality monitoring is essential to mitigate these negative impacts . Good air quality is essential for public health. Various air pollutants such as Particulate Matter (PM2. 5 and PM. , carbon monoxide (CO), nitrogen dioxide (NO. , sulfur dioxide (SO. , and ozone (O. can cause serious health problems with prolonged exposure. According to the World Health Organization (WHO), air pollution is responsible for millions of premature deaths each year . Today's wireless sensor technology has developed rapidly and offers a practical solution for continuous air quality monitoring. These sensors are able to detect various pollutants and provide real-time data that can be analyzed to take preventive measures . Traditional air quality monitoring systems tend to be expensive, require intensive maintenance, and lack flexibility in upgrading features and capabilities. They often lack the ability to efficiently perform firmware updates, which are necessary to ensure the system is always up-to-date with the latest technologies and standards . In this case, the solution that can be implemented is to implement an Over The Air (OTA) system or the update and update process of software or firmware wirelessly and remotely using internet network communication access. By implementing OTA, users can update program firmware without having to go to the device location to make physical contact with the device. This allows firmware updates to be performed in bulk and remotely without the need for direct manual intervention . The OTA method allows firmware and software updates remotely without the need for manual intervention. This provides several advantages mainly Reduces the need for on-site Allows for the rapid addition of new features and bug fixes, and Ensures that the device is always using the latest firmware with improved security and performance . There is a growing demand for air quality monitoring systems that are easily accessible and Systems with OTA capabilities can fulfill this need by providing a flexible and scalable solution . Internet of Things (IoT) technology enables the integration of air quality sensors with a wider network for more comprehensive data collection and analysis. The collected data canbe analyzed using big data techniques to provide deeper insights into air quality patterns and trends . Air quality detection systems using the OTA method are particularly relevant for implementation in smart cities, where various aspects of city infrastructure are connected and managed efficiently through information and communication technology . Overall, the implementation of the OTA system is a strategic and important step in improving the efficiency, performance, and management of hardware for air quality readings. By allowing firmware updates to be performed wirelessly and remotely. OTA will help overcome the challenges of seasonal adjustment, while improving operational efficiency and overall system scalability. The designed device is expected to utilize the internet connection network in performing the update process, this is done virtually through checking and saving the program periodically. By determining the firmware update version, this system can also recognize if an update of the firmware is detected. The update process is carried out by downloading the latest program that has been prepared, after which the latest firmware or program can be directly used by the device. Based on this description, the author is interested in making a Final Project entitled AuDesigning Air Quality Detection Systems with Over-theAir Firmware Update Methods for Performance Enhancement. Ay II. LITERATURES REVIEW Air Quality Detection Air Quality Detection is the process of monitoring and measuring the concentration of pollutants in the atmosphere using various sensors and analytical techniques to assess air A THE AUTHORS. PUBLISHED BY Buddhi Dharma University DOI: 10. 31253/te. NANDA SYAPUTRA / JOURNAL TECH-E VOL. NO. conditions in an area. This involves identifying and measuring parameters such as Temperature. Humidity, and Hazardous Gases using DHT22 Sensors and MQ-135 Sensors. Detecting Quality in the Air is very important so that we can see a better environment . Over The Air (OTA) Over The Air (OTA) is a term commonly used in the context of wireless technology and Literally. AuOver The AirAy means over the air. In the context of technology. OTA refers to sending data, firmware, or software updates over a wireless network, such as a cellular network or Wi-Fi, without requiring a physical connection such as a cable or external storage device. It is often used to update software on mobile devices, such as smartphones, tablets, or IoT (Internet of Thing. devices, as well as to deliver media content such as streaming video or audio . As the name suggests. Over The Air (OTA) refers to the programming, especially updating, of the software that controls the device firmware and/or applications installed on it via the device's wireless connection . There are 2 types of OTA: Local OTA (Offlin. Local OTA (Offlin. Depends on Distance (Distance Must Be Clos. Figure 1. Over The Air (Offlin. Over The Air (OTA) benefit of OTA updates will be immediately apparent based on the Using OTA updates, you don't have to bother updating via a physical connection. It is even more suitable for IT departments in large businesses and organizations. While, for a single user, a physical connection and a few additional steps may not seem to matter, for an organization with hundreds of devices spread across a large building, the task of updating, not to mention the techniques that may be involved, such as different product models, different software versions, difficulty accessing the device, and so on, can take up a lot of time. Another major benefit of using OTA updates is that most software that supports OTA updates features an immediate notification mechanism about update availability. While for traditional updates, it is the responsibility of the user, or the IT department , to take the initiative in checking if an update is available. OTA updates will immediately notify the user that an update is available and they can make the decision to update . Figure 2. Over The Air (OTA) Concept A THE AUTHORS. PUBLISHED BY Buddhi Dharma University DOI: 10. 31253/te. NANDA SYAPUTRA / JOURNAL TECH-E VOL. NO. Internet of Things (IoT) Internet of Things (IoT) is a concept that describes a network of physical objects, such as devices, instruments, vehicles, buildings, and other items equipped with various electronic components, circuits, software, sensors, and network connectivity. This allows these objects to collect data and exchange information between each other. The machine can report its inventory and monitor whether newly loaded drinks are cold. Kevin Ashton, a British technologist, was a pioneer in this concept and popularized the term "Internet of Things" to describe a system where objects in the physical world can be connected to the internet via sensors spread across various places . One of the main advantages of IoT is its ability to interact without human intervention. Although IoT technology is still in its infancy, many initial applications have been developed in areas such as healthcare, transportation, and the automotive industry. However. IoT development also faces a number of challenges, including infrastructure, communication, interface, protocol and standards issues that must be overcome. Kevin Ashton first proposed the concept of IoT in 1999, and he referred to IoT as connected, uniquely identifiable objects that can be uniquely identified with radio frequency identification (RFID) technology. However, the exact definition of IoT is still in the process of being formed subject to the perspective taken. IoT is generally defined as "a dynamic global network. A dynamic global infrastructure with the ability to self -configure based on communication standards and protocols" . Figure 3. Illustration Internet Of Things ESP32 microcontroller Figure 4. ESP32 microcontroller The ESP32 microcontroller is a very popular and powerful development platform, mainly used in Internet of Things (IoT) projects and wireless networking applications. Developed by Espressif Systems, the ESP32 offers a variety of features that make it highly desirable for DIY projects, prototyping, and even commercial products. Arduino Integrated Development Environment (IDE) A THE AUTHORS. PUBLISHED BY Buddhi Dharma University DOI: 10. 31253/te. NANDA SYAPUTRA / JOURNAL TECH-E VOL. NO. Arduino Integrated Development Environment (IDE) is software used to program and develop Arduino devices. It provides a unified development environment that allows users to write, edit, test, and upload code to Arduino boards easily. Figure 5. Arduino IDE software Liquid Crystal Display (LCD) I2C LCD (Liquid Crystal Displa. I2C is an LCD display module that is equipped with an I2C (Inter-Integrated Circui. This module is often used in electronics projects, especially in microcontrollers such as Arduino, to display text and visual information simply. LCD (Liquid Crystal Displa. 16y2 is a very popular display media used as an interface between the microcontroller and the user. With this 16y2 LCD display, the user can see/monitor the state of the sensor or the state of the program running. This 16y2 LCD viewer can be connected to Arduino. Figure 6. 12C LCD This time we will create an LCD to display text. Assemble the project according to the image below: Figure 7. LCD to Arduino The pins on the SDA / SCL can use the SDA. SCL pins listed on the Arduino or you can also use Pins A4. A5. Next, please enter the program that has been created. LM 2596 Regulator Module The LM2596 Regulator Module is a DC voltage regulator module that uses the LM2596 voltage regulator chip. This module is used to regulate DC voltage from a higher voltage source to a lower voltage according to needs. The LM 2596 Regulator Module is a series of DC / DC converter modules with a fixed frequency of 150 kHz fixed-voltage (PWM step-dow. using the LM2596 Regulator IC. A THE AUTHORS. PUBLISHED BY Buddhi Dharma University DOI: 10. 31253/te. NANDA SYAPUTRA / JOURNAL TECH-E VOL. NO. which is capable of driving 5A loads with high efficiency, low draw and excellent line and load regulation. Figure 8. LM2596 Regulator Module Censorship Sensors are devices that receive or respond to signals or stimuli. Sensors have a function, namely to identify and communicate physical quantities such as temperature, pressure, distance, humidity and gas. Sensors can basically be classified as input transducers because they can convert electrical energy such as light, pressure, movement, temperature or other physical energy into electrical signals or resistance which will be converted back into voltage or electrical signals. There are 4 parts to the sensor, namely: Passive Sensor Passive sensors are a type of sensor that can produce an output signal without requiring an external electricity supply. A thermocouple which produces a voltage value according to the heat or temperature it receives. Active Sensor Active Sensors are a type of sensor that requires an external power source to operate. The physical properties of Active sensors vary with respect to the external effects they provide. This active sensor is also called an Automatic Generating Sensor (Self Generating Senso. Analog Sensors An analog sensor is a device that produces an analog output according to the calculated This sensor also works by observing changes in external factors around it. Examples of analog sensors are accelometers, pressure sensors, speed sensors, light sensors and temperature sensors. Figure 9. Sensor Digital Sensors A digital sensor is a device whose signal output value is directly converted into a signal in digital form. Signals are usually measured in two states in digital sensors, namely on and off. Figure 10. Digital Sensors A THE AUTHORS. PUBLISHED BY Buddhi Dharma University DOI: 10. 31253/te. NANDA SYAPUTRA / JOURNAL TECH-E VOL. NO. DHT22 sensors DHT22 is a temperature and humidity sensor that is often used in electronics projects, especially in the fields of Internet of Things (IoT) and environmental monitoring. This sensor is also known as DHT22 or AM2302. The DHT22 sensor uses very low power, making it suitable for battery applications and operating for a long time without the need for regular battery replacement. This sensor has a low noise level, making it suitable for applications that require stable and accurate measurements . Figure 11. DHT22 sensor MQ-135 sensors MQ-135 is a gas sensor used to detect several types of dangerous gases such as ammonia (NH. , methane (CH. , carbon monoxide (CO), and volatile organic compounds (VOC). This sensor is quite popular because of its simple but effective ability to detect these gases . Figure 12. MQ-135 sensor Table 1. Characteristics of the MQ-135 Sensor No Part MQ-135 Source Voltage Detection Gas Level Measurement Output Details 5 Volts Benzene. Ammonia(NH. ,Smoke. Carbon Dioxide (CO. Nitrogen Oxide (No. AlcoholAnd etc. 10-100 PPM Benzene, 10-300 PPM Ammonia, 10-300 Alcohol and Analog i. FRAMEWORK Research Framework The framework for the research stages of this final assignment is made in the form of an overall diagram. So the overall diagram of the stages of this research will produce a system that can work well and will also produce a system that can function and can be seen in Figure 1 which shows the overall framework of this The framework for the research stages of this final assignment is made in the form of an overall diagram. So the overall diagram of the stages of this research will produce a system that can work well and will also produce a system that can function. The following is an explanation of the Research Framework diagram above: Start/Start Literature study, namely collecting data from various sources such as books, theses, journals and the internet, where these sources will become references for this writing. A THE AUTHORS. PUBLISHED BY Buddhi Dharma University DOI: 10. 31253/te. NANDA SYAPUTRA / JOURNAL TECH-E VOL. NO. Hardware design , this stage will be described in the form of a block diagram, then prepare the necessary components and then install them into hardware . Software design ( Software ), this stage is described in the form of a flowchart which shows how programming applications such as the Arduino IDE work. Hardware and Software Integration . At this stage a combined installation of Hardware and Software is carried out Testing the tool and collecting data, then testing the function and performance of the tool After that we will make a final report, at this stage we will also carry out analysis and draw conclusions obtained from research on air quality detection tools using the Over The Air method ( OTA) for Firmware Upgrade Optimization. Done/Finish Device Design The device design stage is divided into 2 stages, namely the software design stage and the software design stage . Tool design begins with designing the block diagram of the overall system. The overall working system of the circuit can be known from the circuit block diagram which is one of the most important parts in designing a device. Software Design . The working process of this device is that when the device is going to upgrade the program, first the device needs to be on and connected to an internet connection. When the device is connected to the internet, the device will enter standby or run the main program while validating new program input. To update the firmware, the main program must first be changed to . BIN format so that it can be read by the microcontroller. After being converted to . BIN format, the program needs to be uploaded first to the server, after that, over a certain period of time, the device will validate the new program When a new program is detected on the server, the program will be downloaded by the device and when it has finished downloading, the latest version of the program will be installed on the microcontroller. Figure 13. Software Flowchart A THE AUTHORS. PUBLISHED BY Buddhi Dharma University DOI: 10. 31253/te. NANDA SYAPUTRA / JOURNAL TECH-E VOL. NO. Hardware Design . Figure 14. Hardware Block Diagram From the block diagram above, it can be seen that the working process of this device starts from the 12V 2A battery which will provide working voltage to all devices including the microcontroller and sensors. The working voltage will be reduced from 12V to 5V because the microcontroller device works in that voltage range. Then, the NodeMCU ESP8266 microcontroller will receive input data from the DHT22 sensor in the form of air temperature and humidity values and data from the MQ-135 sensor in the form of particle values in the air. The output of this device is an OLED LCD to display data and a buzzer as sound output. Figure 15. Schematic Layout The following is an explanation and function regarding the Schematic Layout which is shown in Figure 3. 4 Schematic Layout Components used NodeMCU ESP8266 is an ESP8266 based microcontroller which has Wi-Fi capabilities, used to collect data and send to the server. DHT22 is a Temperature and Humidity Sensor which is used to measure air temperature and humidity. MQ-135 is an air quality sensor used to detect dangerous gases in the air OLED Display is a small screen that is used to display data from sensors in real-time Mechanical Design The mechanic or final task is to position the sensors correctly according to their position so that each can work well and optimally. Hardware design is a prototype for hardware design, where the hardware is designed using a PCB which aims to protect the sensor components on the device. A THE AUTHORS. PUBLISHED BY Buddhi Dharma University DOI: 10. 31253/te. NANDA SYAPUTRA / JOURNAL TECH-E VOL. NO. Figure 16. Hardware Mechanical Design Method Development After collecting data from previous research, development was carried out, namely OTA, which allows software updates quickly and efficiently without the need for physical intervention and Firmware Updates will be successful and can provide information on environmental air quality conditions. System Performance Test Overall System Performance in the Air Quality Detection System Design Tool Using the Over The Air (OTA) Method. Users can monitor Air Quality and Environmental Conditions in Real Time and it is also possible to carry out OTA Firmware updates. The device that will be made uses an internet connection network. The update process will be carried out virtually by means of the device periodically checking the program By determining the firmware update version, the system can recognize if a firmware update is detected. The update process is carried out by means of the device downloading the latest program that has been prepared. When the download process is complete, the latest firmware or program can be used directly by the device. In this test, the system will be tested with connected hardware and software devices. Here's how the system works, namely: Initialization. NodeMCU is initialized and connected to Wi-Fi. DHT22 and MQ-135 sensors are initialized. Data Collection . NodeMCU collects data from DHT22 and MQ-135 sensors Data Processing. Data from Sensors is processed by NodeMCU. Data Delivery. Processed data is sent to the server via a Wi-Fi Internet Connection. Data Display. Data is displayed on the OLED display for Real-Time monitoring. IV. METHODS The working process of this device is that when the device will upgrade the program, the device first needs to be on and connected to an internet connection. When the device is connected to the internet, the device will enter standby or run the main program while validating the new program input. To update the firmware, the main program must first be converted into . BIN format so that it can be read by the microcontroller. After being converted to . BIN format, the program needs to be uploaded to the server first, after which during a certain period of time the device will validate the new program input. When a new program is detected in the server, the program will be downloaded by the device and when it has finished downloading, the program with the latest version is installed in the RESULT This chapter explains the assembly process, test results and discussion of the performance results of the devices that have been made. The sub-chapters that will be discussed include a test overview, test data from sensor reading results, responsive functions to sensor reading A THE AUTHORS. PUBLISHED BY Buddhi Dharma University DOI: 10. 31253/te. NANDA SYAPUTRA / JOURNAL TECH-E VOL. NO. results and analysis of overall function and performance. This test is carried out to determine whether the work of the device being made is in accordance with the initial planning. Hardware Assembly and Installation Stages This device will have several main components, namely the Wemos D1 Microcontroller. MQ Sensor. I2C LCD, and DHT22 Sensor in the main circuit. The Wemos D1 microcontroller component in this device functions as the main microcontroller which will process all incoming data and process the data and provide output in the form of predetermined conditions. In this case, the microcontroller will process the data from the sensor readings and then process the data and send the data via an Internet connection. Next, the MQ sensor component will read the value of particles in the air. Later, these values will be displayed on the LCD and can be seen directly by the user. Lastly, the component used is the DHT22 sensor which reads values from the surrounding environment. The variables that will be calculated from this component are the temperature and humidity values of the air in the surrounding environment, so any changes that occur in the temperature and humidity of the air around the sensor can be detected directly by the DHT22 sensor. Testing Stages In its implementation, basic performance testing of devices that support its main performance will be carried out, namely testing the ability to read variable values for each sensor and overall and functional testing of the system. Device Working Voltage Measurement Test Test Measurement of the working voltage of the hardware is carried out to see whether the voltage used for each component is in accordance with the working voltage of that component or not. Test Point Battery LM2596 DC to DC Converter Wemos D1 Mini LCD 12C Table 2. Characteristics of the MQ-135 Sensor Reference Information Test results VDC output VDC output VDC output VDC output VDC output Input LM2596 Input LM2596 Input LM2596 Input LM2596 Input LM2596 Output LM2596 Output LM2596 Output LM2596 Output LM2596 Output LM2596 VIN Wemos VIN LCD 12C 4,9V A THE AUTHORS. PUBLISHED BY Buddhi Dharma University DOI: 10. 31253/te. Average Accuracy 13,74V 85,5% 98,4% 99,6% 98,4% NANDA SYAPUTRA / JOURNAL TECH-E VOL. NO. MQ Sensor VIN PZEM-017 DHT22 VIN DHT22 98,04% In the table above it can be seen that each test point has different test results. The Power Supply Regulator has an input voltage of 220VAC because it uses direct electricity which is usually available at home, while the output is 12VDC because it has gone through a rectification process so that the voltage changes from AC ( Alternate Current ) to DC ( Direct Current ). This 12V DC voltage will enter the LM2596 DC to DC Converter component and then reduce the value again to 5V. The reason why the voltage needs to be reduced to 5V is because the average working voltage of the microcontroller and sensor is in the range of 3. 3V to 6V, so a voltage of 5V is often chosen because it is the middle value of that range. In the table above it can be seen that all components, both microcontrollers and sensors, have a working voltage of 5V, this is to prevent component damage due to overvoltage. DHT22 Sensor Testing The functional test on the DHT22 sensor was carried out to test the sensor's ability to detect environmental temperature values in a certain area. In the scenario, the sensor will read the temperature and humidity values of the air over a certain period of time with the aim of testing the reading results in different weather conditions to see whether this will affect the final reading results. In this trial, the temperature and humidity variables will be tested five times, with each test adjusted to the respective observation hours. The test results can be seen in table 4. 2 below: Table 3. Results of Trial Use of the DHT22 Sensor Conditions around the area Humidity (H) Temperature Value (C). Indoor 65% Humidity 00 o C Indoor (Bathroo. 68% Humidity 90 o C Outdoor (Sunn. 58% Humidity 20 o C Outdoor (Shad. 49% Humidity 30 o C Indoor 62% Humidity 40 o C Figure 17. DHT22 Sensor Measurement Graph A THE AUTHORS. PUBLISHED BY Buddhi Dharma University DOI: 10. 31253/te. NANDA SYAPUTRA / JOURNAL TECH-E VOL. NO. From the measurement results in Figure 4. 1, it can be seen that the temperature data changes when the measurement conditions change from indoor to outdoor, as well as when the humidity conditions change while in the bathroom. The most dominant measurement results occurred when the temperature sensor was placed outdoors with a calculated temperature of 36. 30oC and a humidity level of 49%. The results of this measurement show that the temperature and humidity sensor works well in measuring the surrounding conditions and none of its constituent components are damaged. VI. CONCLUSION From the tests that have been carried out, the device is made in 3 devices that are placed in 3 locations to check air quality using variables of air temperature, air humidity and particle values in the air. In the scenario, the device will be tested to make changes to the threshold variables in the program remotely using an internet connection. The process will help users save time to change the threshold value effectively and efficiently. Based on the results and discussion after testing, the following conclusions can be drawn. The air quality detection system built is able to monitor and measure air quality parameters in real-time. The sensors used can detect various air pollutants such as PM2. PM10. CO2, and others with high accuracy. The OTA method allows device firmware updates to be performed This increases flexibility and efficiency in system maintenance, reduces the need for manual intervention, and minimizes device downtime. With the implementation of the OTA method, developers can easily perform bug fixes, feature enhancements, and device performance optimization without having to physically access the device. This ensures the system is always up-to-date with the latest technologies and fixes. The system is designed to be easily expandable, allowing the addition of new devices to the monitoring network without The OTA method also facilitates simultaneous updates on multiple devices, improving scalability and system management. The design of air quality detection system with OTA method for firmware upgrade optimization provides an effective and efficient solution for environmental monitoring, device maintenance, and continuous improvement of system performance. A THE AUTHORS. PUBLISHED BY Buddhi Dharma University DOI: 10. 31253/te. NANDA SYAPUTRA / JOURNAL TECH-E VOL. NO. REFERENCES