원시데이터 수집 시스템
선정목록으로

Development and Evaluation of an ESP32-based Temperature and Humidity Control Unit for Textile Storage

간접 관련 패션 · (24) 패션(코오롱FnC) (17) 스펀본드 부직포

기본 정보

저자
  1. Dedy Harianto — Akademi komunitas industri tekstil dan produk tekstil surakarta
  2. Hamdan S. Bintang — Akademi Komunitas Industri Tekstil dan Produk Tekstil Surakarta
  3. Agus Ardiyanto — Akademi Komunitas Industri Tekstil dan Produk Tekstil Surakarta
  4. Vallen Laurinda Defrina Widyawan — Akademi Komunitas Industri Tekstil dan Produk Tekstil Surakarta
DOI
10.58291/ijec.v4i1.309
저널
International Journal of Engineering Continuity
발행년도
2024
발행기관
Sultan Publisher
피인용수
0
라이선스
cc-by-sa
논문 유형
–
언어
–
원문 페이지
http://dx.doi.org/10.58291/ijec.v4i1.309
토픽
Textile materials and evaluations
OpenAlex ID
W4404492097

평가 내용

관련도
간접 관련
사업분야
패션 · (24) 패션(코오롱FnC)
부 분야
(17) 스펀본드 부직포
R&D 측면
기타
확신도
0.80
근거 용어
textile storage, temperature and humidity control, ESP32 microcontroller, product quality, environmental monitoring
판단 근거
본 논문은 섬유 제품의 품질 유지를 위한 창고 내 온습도 제어 시스템(IoT 기반) 개발에 관한 연구입니다. 이는 코오롱인더스트리의 패션(24) 및 산업용 섬유(17) 사업부에서 취급하는 섬유 소재의 보관 및 품질 관리 공정에 간접적으로 적용 가능한 기술입니다.
R&D 활용 포인트
섬유 및 고기능성 소재(아라미드, 에어백 원단 등)의 장기 보관 시 발생할 수 있는 변색, 섬유 취성, 미생물 증식 등을 방지하기 위한 스마트 물류/창고 관리 시스템 구축에 활용 가능합니다.
평가 입력
본문 52,563자 중 30,032자 발췌

초록

Monitoring temperature and humidity in textile storage warehouses is vital for maintaining product quality and ensuring optimal conditions. This study focuses on developing a temperature and humidity control unit using an ESP32 microcontroller, evaluating its performance through black-box testing. The ESP32-based system offers a scalable and energy-efficient solution for climate control, delivering precise environmental monitoring through integrated Wi-Fi and Bluetooth for affordable connectivity. Its advanced real-time data processing capabilities and compatibility with multiple sensors make it highly suitable for cost-effective, large-scale implementations in textile storage environments. The experimental approach involves controlling temperature and humidity as independent variables, while ensuring optimal storage as the dependent variable. The DHT21 sensor, ESP32 microcontroller, and relay are used as control variables. Software was developed in the Arduino IDE to manage temperature and humidity, and after validation, the program was uploaded to the ESP32 for black box testing. Results confirmed that the system effectively regulates these conditions, crucial for preserving textiles. The ESP32 efficiently serves as the control unit, and testing validated its ability to maintain desired limits. Future improvements could include wireless access for remote monitoring, enhancing flexibility and operational efficiency in environmental control for textile storage.

본문 52,563자

본문 펼치기
<mark>International Journal of Engineering Continuity</mark> # Development and Evaluation of an ESP32-based Temperature and Humidity Control Unit for Textile Storage ### Dedy Harianto Department of Thread Manufacturing Engineering, Community Academy of Textile Industry and Textile Products Surakarta, Surakarta, Indonesia ### Hamdan S. Bintang Department of Thread Manufacturing Engineering, Community Academy of Textile Industry and Textile Products Surakarta, Surakarta, Indonesia ### Agus Ardiyanto Department of Thread Manufacturing Engineering, Community Academy of Textile Industry and Textile Products Surakarta, Surakarta, Indonesia ### Valen Laurinda Defrina Widyawan Department of Thread Manufacturing Engineering, Community Academy of Textile Industry and Textile Products Surakarta, Surakarta, Indonesia ### Abstract : Monitoring temperature and humidity in textile storage warehouses is vital for maintaining product quality and ensuring optimal conditions. This study focuses on developing a temperature and humidity control unit using an ESP32 microcontroller, evaluating its performance through black-box testing. The ESP32-based system offers a scalable and energy efficient solution for climate control, delivering precise environmental monitoring through integrated Wi-Fi and Bluetooth for affordable connectivity. Its advanced real-time data processing capabilities and compatibility with multiple sensors make it highly suitable for cost effective, large-scale implementations in textile storage environments. The experimental approach involves controlling temperature and humidity as independent variables, while ensuring optimal storage as the dependent variable. The DHT21 sensor, ESP32 microcontroller, and relay are used as control variables. Software was developed in the Arduino IDE to manage temperature and humidity, and after validation, the program was uploaded to the ESP32 for black box testing. Results confirmed that the system effectively regulates these conditions, Correspondents Author: Dedy Harianto, Department of Thread Manufacturing Engineering, Community Academy of Textile Industry and Textile Products Surakarta, Surakarta, Indonesia [Email: dedy_mits@yahoo.com](mailto:dedy_mits@yahoo.com) Received Oktober 11, 2024; Revised November 12, 2024; Accepted November 14, 2024; Published November 18, 2024 1 <mark>International Journal of Engineering Continuity</mark> crucial for preserving textiles. The ESP32 efficiently serves as the control unit, and testing validated its ability to maintain desired limits. Future improvements could include wireless access for remote monitoring, enhancing flexibility and operational efficiency in environmental control for textile storage. ### Keywords : Temperature and humidity control, Textile storage, ESP32 microcontroller, DHT21 sensor. ## Introduction The textile and textile products industry is a key sector of the manufacturing industry and a significant driver of national economic development (Afifuddin et al., 2021). As a substantial contributor to the global economy, the textile industry plays a critical role in economic growth and industrial exports in many countries (Memon et al., 2020). However, the industry's environmental impact has raised concerns about its long-term viability (Fadara & Wong, <u>2022;</u> <u>Saha et al., 2024). Proper storage conditions are essential to maintaining the quality</u> and durability of textile products. Factors such as high production costs, energy shortages, and outdated technology can indirectly affect storage practices (Memon et al., 2020). Ensuring yarn strength that meets or exceeds standards is crucial for the quality and durability of the final product (Harianto et al., 2023). Moreover, the growing focus on sustainability and the circular economy emphasizes the need for proper storage practices to extend product life and reduce waste (Saha et al., 2024). Occupational safety and health are critical to ensuring the continued excellence of a company’s workforce. In a production process involving machine tools and a large number of human resources, the risk of accidents is significant (Sugiyarto et al., 2024). Additionally, maintaining high product quality through proper storage practices can significantly improve consumer satisfaction, a key aspect of sustainable textile products (Fadara & Wong, 2022). Yarn unevenness is another critical factor in determining product quality (Harianto et al., 2023). Innovations aimed at reducing the environmental impact of the textile industry, such as improvements in waste management and pollution control from dyeing processes, further highlight the importance of proper storage (Hossain et al., 2024). Overall, proper storage conditions are crucial for maintaining product quality and supporting the industry's sustainability initiatives. The design of temperature and humidity control units for textile storage rooms is crucial to ensure optimal conditions and prevent product damage. In the textile industry, stored products are highly susceptible to fluctuations in temperature and humidity. Excessive humidity can lead to mould growth, while insufficient humidity can cause fibre desiccation, both of which reduce textile quality. Therefore, the implementation of temperature and International Journal of Engineering Continuity, ISSN 2963-2390, Volume 4 Number 1 March 2025 <u>[https://doi.org/10.58291/ijec.v4i1.309](https://doi.org/10.58291/ijec.v4i1.309)</u> 2 <mark>International Journal of Engineering Continuity</mark> humidity control technologies in storage spaces is necessary (Mubarak et al., 2022). An effective temperature and humidity control system should account for factors such as ventilation, air circulation, and the use of sensors for real-time monitoring. For instance, DHT 22 sensors have been proven effective in maintaining stable storage conditions (Fauzi et al., <u>2023). Other studies emphasize the importance of using humidifiers to maintain the relative</u> humidity balance within storage rooms (Sasono et al., 2022). Advanced technologies, such as Internet of Things (IoT)-based control systems, allow for automatic monitoring and regulation of temperature and humidity to ensure optimal storage conditions (Ridho & Musafa, 2022). Monitoring temperature and humidity in textile storage warehouses is critical to preserving product quality and ensuring appropriate storage conditions. Various systems have been developed to address these needs, such as environment monitoring systems utilizing sensors and microcontrollers (Chen & Xiao, 2023), IoT-based warehouse monitoring systems with temperature and humidity sensors and RFID technology (Hao et al., 2022), and intelligent monitoring systems with dual control functions for temperature and humidity (Kumari et al., <u>2023). Additionally, flexible hybrid electronic systems have been specifically designed for</u> monitoring temperature and humidity in storage containers, offering enhanced durability and resistance to environmental factors (Panahi et al., 2022). The use of conductor yarn for moisture sensing applications in textile warehouses further demonstrates the potential of innovative sensor structures for effective environmental monitoring (Yi et al., 2021). Overall, temperature and humidity monitoring in textile storage warehouses is essential for maintaining product quality, preventing damage, and ensuring compliance with industry standards. Existing climate control systems for textile storage, including basic ventilation and automated HVAC systems, face challenges related to precision and adaptability. Basic ventilation setups often fail to accurately regulate temperature and humidity, exposing textiles to risks of degradation from excessive moisture or dryness. Although automated HVAC systems offer enhanced control, they are energy-intensive and expensive to maintain, especially in facilities that require constant environmental stability (Chen & Xiao, 2023). IoT-integrated systems provide improved monitoring capabilities, yet frequently lack the real-time adaptive controls necessary for preserving textiles sensitive to climate fluctuations (Yi et al., 2021). Recent technological advancements have enabled the development of diverse environmental monitoring systems, particularly through the integration of ESP32 microcontrollers, valued for their efficiency and cost-effectiveness in climate control across various industries. Research underscores the ESP32's strengths in real-time monitoring, leveraging its processing capabilities and built-in Wi-Fi for precise temperature and humidity regulation. For example, Hercog et al. (2023) illustrate the adaptability and efficiency of ESP32-based IoT devices in International Journal of Engineering Continuity, ISSN 2963-2390, Volume 4 Number 1 March 2025 <u>[https://doi.org/10.58291/ijec.v4i1.309](https://doi.org/10.58291/ijec.v4i1.309)</u> 3 <mark>International Journal of Engineering Continuity</mark> environmental monitoring applications, establishing it as a viable, affordable option for industries requiring stringent climate control. The ESP32-based system developed in this study addresses these limitations by offering a scalable, energy-efficient solution with high accuracy in maintaining environmental parameters. ESP32’s built-in Wi-Fi and Bluetooth enable flexible, cost-effective connectivity, making it ideal for real-time monitoring in textile storage (Hercog et al., 2023). Its capacity for rapid data processing and handling of multiple sensor inputs supports advanced monitoring capabilities while remaining economical, crucial for industries that require affordable, large-scale deployments (El-Khozondar et al., 2024). This system surpasses conventional setups by delivering efficient data transmission and remote monitoring, significantly enhancing climate control in storage environments. Research on the use of ESP32 microcontrollers for temperature and humidity control in textile storage rooms remains limited. While the use of ESP32 for climate control has attracted attention in various applications, its specific role in textile storage has not been extensively explored. Mubarakah et al. (2022) developed an ESP32-based system that effectively regulates humidity and temperature to meet health standards, presenting a promising solution for environments requiring climate control. Similarly, Sunardi et al. (2023) employed the Tsukamoto Fuzzy Inference System with ESP32 to control fan speed, enabling real-time mobile-based remote climate management. Additionally, Anggrawan et al. (2023) applied ESP32 to maintain temperature and humidity stability in swallow breeding environments, achieving high accuracy in preserving optimal conditions. Although these studies highlight the potential of ESP32 for climate control in various sectors, further research is required to investigate its application in textile storage rooms. The use of ESP32 microcontrollers for temperature and humidity control in textile product storage rooms has the potential to enhance efficiency and reduce costs compared to conventional systems. Several studies have demonstrated the effectiveness of ESP32 in climate control applications. For instance, Mubarakah et al. (2022) developed an ESP32-based system that successfully regulates room temperature and humidity, achieving optimal air quality and health standards while minimizing energy consumption. Similarly, MacHeso et al. (2021) created a low-cost ESP32 asynchronous web server for real-time temperature and humidity monitoring, improving system efficiency with lower power consumption. Furthermore, Biswas & Iqbal (2018) demonstrated the cost-effectiveness of an ESP32-based automatic solar water pump system in controlling temperature and humidity, highlighting significant cost savings. These studies emphasize the potential of ESP32 to enhance operational efficiency and reduce expenses in textile storage environments. International Journal of Engineering Continuity, ISSN 2963-2390, Volume 4 Number 1 March 2025 <u>[https://doi.org/10.58291/ijec.v4i1.309](https://doi.org/10.58291/ijec.v4i1.309)</u> 4 <mark>International Journal of Engineering Continuity</mark> The ESP32 microcontroller is highly suitable for creating temperature and humidity control units for textile product storage rooms, offering multiple advantages over traditional systems. ESP32 is a powerful and versatile microcontroller, ideal for IoT applications, including environmental monitoring and control. It features built-in Wi-Fi and Bluetooth capabilities, which makes it highly suitable for wireless communication and remote monitoring (Ansari et <u>al., 2023). The superior processing power of ESP32, operating at speeds of up to 240 MHz</u> compared to the 16 MHz of the Arduino UNO, allows for more complex tasks and faster data processing (Ansari et al., 2023). For temperature and humidity sensing, the DHT22 sensor is recommended due to its superior performance and accuracy compared to the DHT11 (Ansari <u>et al., 2023). The ESP32 WROOM-32 module, a development board, simplifies the process of</u> learning and experimenting with ESP-WROOM-32-based circuits. The ESP32 chip has several advantages over its predecessors, including higher speed, 32-bit processing, larger memory capacity, and integrated Bluetooth functionality (Prastyo, 2022). However, not all pins on the ESP32 are suitable for every project. Green-highlighted pins are generally safe to use, while yellow-highlighted pins can be used with caution, as some may exhibit unexpected behavior during the boot process. Red-highlighted pins are not recommended for input or output functions (Prastyo, 2022). Figure 1. Pins of the ESP32 development board <u>(Prastyo, 2022)</u> The ESP32 microcontroller can be programmed to read data from DHT22 sensors and wirelessly transmit it to cloud platforms such as Firebase for storage and analysis (Ansari et <u>al., 2023). This configuration enables real-time monitoring of environmental conditions in</u> storage rooms via smartphones, web applications, or other internet-connected devices <u>(Ansari</u> <u>et al., 2023;</u> <u>Ismail et al., 2021). An interesting application of these systems is the use of</u> predictive modelling. As demonstrated by Yuan et al. (2020), collected temperature and humidity data can be utilized with grey prediction models to forecast future environmental conditions in the storage room. This capability is particularly useful for textile storage, enabling pre-emptive actions to maintain optimal conditions. ESP32-based temperature and humidity control units for textile storage rooms offer real-time monitoring, remote access, and prediction functionalities. The system can be configured to trigger alerts or activate control International Journal of Engineering Continuity, ISSN 2963-2390, Volume 4 Number 1 March 2025 <u>[https://doi.org/10.58291/ijec.v4i1.309](https://doi.org/10.58291/ijec.v4i1.309)</u> 5 <mark>International Journal of Engineering Continuity</mark> mechanisms, such as HVAC systems, when temperature or humidity levels exceed predefined thresholds <u>(Ismail et al., 2021). This ensures optimal storage conditions for textiles,</u> potentially enhancing their quality and longevity. The ESP32 microcontroller, similar to the ESP-12E used by Desnanjaya et al. (2023), is suitable for this application due to its wireless communication capabilities and data processing power. The system can collect temperature and humidity data using sensors like the DHT22, as demonstrated by Desnanjaya et al. (2023). These sensors have shown good accuracy, with Emge et al. (2020) reporting an average temperature error of 0.75°C and 3% humidity deviation when compared to a Thermo-Hygro measuring device. Interestingly, while most studies focus on monitoring, Huang et al. (2021) emphasized the significance of control alongside monitoring. Huang et al. (2021) introduced a PID algorithm for system correction, which can be implemented in ESP32-based systems to maintain optimal storage conditions for textiles. This approach was further supported by Desnanjaya et al. (2023), who successfully applied PID control to maintain a stable indoor temperature at 25°C. Designing a temperature and humidity control unit for a textile storage room using the ESP32 microcontroller is feasible and promising. By integrating wireless communication, accurate sensors, and control algorithms such as PID, the system can efficiently monitor and regulate the storage environment, thereby potentially improving textile durability and energy efficiency (Chen & <u>Xiao, 2023; Desnanjaya et al., 2023).</u> Despite the promising features of ESP32, gaps in research persist regarding its specific application within textile storage environments. Existing solutions often lack adequate evaluation under storage-specific conditions or do not utilize optimal sensor configurations for humidity-sensitive materials like textiles. This research addresses these gaps by developing a tailored ESP32-based control unit designed to maintain the stringent environmental parameters required for textile storage, enhancing both accuracy and efficiency in maintaining climate stability. The objective of this study is to design, develop, and test an ESP32-based temperature and humidity control system specifically for textile storage rooms. Through rigorous black-box testing, this research evaluates the system's performance, focusing on its ability to stabilize environmental conditions within the set limits. This approach provides critical insights into how ESP32 can be applied more effectively in the textile sector to ensure the longevity of stored materials. According to Narizzano et al. (2020), black box testing is a software testing method aimed at evaluating an application's functionality without accessing its source code. This method is widely used to identify errors and assess system performance based on the expected input-output behavior. For example, black box testing is applied to responsive systems whose specifications are expressed in temporal logic, enabling the detection of specification International Journal of Engineering Continuity, ISSN 2963-2390, Volume 4 Number 1 March 2025 <u>[https://doi.org/10.58291/ijec.v4i1.309](https://doi.org/10.58291/ijec.v4i1.309)</u> 6 <mark>International Journal of Engineering Continuity</mark> violations. Amelia Silitonga et al. (2023) says black box testing is a method used to evaluate the software interface. It is designed to identify errors and ensure that the software functions as intended. This testing approach documents the results, providing evidence of the software's compliance with the specified requirements. Moreover, black box testing has been used to validate a mobile-based agricultural application through the equivalent partitioning technique, achieving a compliance rate of 77% across 13 test cases <u>(Sasmito & Mutasodirin,</u> <u>2023). Additionally, another study demonstrated that this method could detect performance</u> regression in large-scale software systems by employing a machine learning-based model to analyze the relationship between system performance and runtime activities (Liao et al., <u>2020).</u> In summary, this research contributes to existing knowledge by offering a practical solution that integrates modern microcontroller technology with climate control requirements in textile storage. The findings of this study aim to support the textile industry by providing a scalable, low-cost solution for climate control, potentially minimizing product degradation and enhancing operational efficiency in textile storage practices. ## Research Method This study employs an experimental approach aimed at designing, develop and testing a temperature and humidity control unit for a textile storage room. The design uses an ESP32 microcontroller as the central control system, utilizing control algorithms based on temperature and humidity sensors. The research object is a textile storage room that requires optimal temperature and humidity conditions. The materials and tools used include an ESP32 microcontroller, a DHT21 temperature and humidity sensor, a 5-volt power supply, Arduino IDE software for programming, jumper cables, a laptop, a USB cable to upload the program from the laptop to the ESP32 microcontroller, and a 2-output relay. To validate the DHT21 sensor readings, KAN-certified temperature and humidity measuring devices were employed. Figure 2. KAN-certified temperature and humidity measuring device Data collection was conducted on September 23, 2024, at the Akademi Komunitas Industri Tekstil dan Produk Tekstil Surakarta. Data were obtained through temperature and humidity International Journal of Engineering Continuity, ISSN 2963-2390, Volume 4 Number 1 March 2025 <u>[https://doi.org/10.58291/ijec.v4i1.309](https://doi.org/10.58291/ijec.v4i1.309)</u> 7 <mark>International Journal of Engineering Continuity</mark> sensor readings controlled by the ESP32, and the results were displayed on the Arduino IDE serial monitor. This study includes three variables: the independent variable is controlled temperature and humidity; the dependent variable is the optimal condition of the textile storage room; and the control variables are the DHT21 sensor, ESP32 microcontroller, and relay. The research process consists of four stages: preparation, device design, testing and data analysis, and finally, conclusion, as illustrated in Figure 3. start Preparation Device design Data testing & analysis Conclusion end Figure 3. Stages of research The preparation phase begins by gathering references and relevant literature for this research, followed by the formulation of the research problem and objectives. In the design phase, a control system is developed using the ESP32 microcontroller. The data testing and analysis section of this study comprises two main stages: testing the accuracy of the DHT21 sensor for temperature and humidity measurements, and assessing the functionality of the program using the black box testing method to ensure optimal temperature and humidity control. First, the sensor accuracy test involved comparing the DHT21 sensor readings with those of manual instruments certified by the National Accreditation Committee (KAN). These measurements were performed in a controlled environment to verify the sensor’s precision. Each reading from the DHT21 sensor was analyzed by recording its deviation from the certified instrument values, allowing the evaluation of the sensor's consistency and accuracy across different conditions. Second, the ESP32 system function test employed the black box testing method, which evaluates the system's outputs without considering the internal program structure. The program was tested for its ability to regulate the temperature and humidity in a textile storage International Journal of Engineering Continuity, ISSN 2963-2390, Volume 4 Number 1 March 2025 <u>[https://doi.org/10.58291/ijec.v4i1.309](https://doi.org/10.58291/ijec.v4i1.309)</u> 8 <mark>International Journal of Engineering Continuity</mark> room, ensuring that the conditions remain within optimal limits. The test included scenarios where temperature and humidity exceeded or dropped below predefined values, aiming to verify the system’s ability to respond and restore the desired conditions. The black box testing results were analyzed using key performance metrics such as response time, control accuracy, and environmental stability. Key performance metrics used in this black-box testing include: (a) Response Time, which measures the duration required by the ESP32 system to adjust temperature and humidity levels following deviations, reflecting the control mechanisms’ responsiveness; (b) Control Accuracy, assessing how precisely the system maintains environmental variables within target ranges, validating sensor readings and feedback loop effectiveness; and (c) Environmental Stability, evaluating the system’s ability to sustain consistent conditions without fluctuations, essential in settings requiring steady conditions, such as textile storage. While controlled testing environments for ESP32-based humidity and temperature systems provide consistency, they may not capture real-world variability. Controlled settings are effective for establishing baseline performance but often exclude factors like power surges and ambient fluctuations common in actual deployment scenarios <u>(Narayana et al., 2024). For</u> instance, research on IoT-based monitoring systems has shown that laboratory conditions support stable accuracy but may not predict challenges encountered in dynamic real-world environments (Geck et al., 2024). Real-world testing, therefore, is advised to increase the applicability of results. Deploying the ESP32 system in variable field settings where temperature and humidity fluctuate over time would more accurately assess its responsiveness and stability under diverse conditions (Fauzi <u>et al., 2023). Incorporating an alarm feature, as seen in IoT applications, could also provide</u> valuable data on system adaptability and notification accuracy under different operational stresses (Mashuri & Zulfa, 2021). Together, these methods offer a thorough evaluation of the system's robustness and resilience in practical applications. ## Result and Discussion The ESP32 is assembled with other components and connected to a 5-volt power supply. The analogue input of the ESP32 microcontroller is connected to the DHT21 temperature and humidity sensor via a 10k-ohm resistor. This resistor limits the current and ensures signal stability for humidity measurements (Yusof et al., 2019). As noted by (Wu et al., 2019), the resistor helps maintain sensor signal stability when interfacing with Arduino. In this setup, the digital pin output of the ESP32 is connected to a relay. The laptop is used to upload the program to the ESP32 microcontroller. The tool assembly schematic is illustrated in Figure 4. International Journal of Engineering Continuity, ISSN 2963-2390, Volume 4 Number 1 March 2025 <u>[https://doi.org/10.58291/ijec.v4i1.309](https://doi.org/10.58291/ijec.v4i1.309)</u> 9 <mark>International Journal of Engineering Continuity</mark> After assembling the equipment, the next step is to develop programming algorithms using the Arduino IDE. Two algorithms were developed: the first tests the reading accuracy of the DHT21 sensor, and the second maintains the temperature and humidity within optimal limits. The optimal range in the textile product storage room is 55% - 65% for humidity and 27 - 33 for temperature (Hale, n.d.). These values are used as limit parameters for the program created with the Arduino IDE. Figure 4. Device assembly The algorithm for testing the temperature and humidity readings of the DHT21 sensor is illustrated in Figure 5. Any discrepancies between the DHT21 sensor readings and the results from KAN-certified temperature and humidity measuring devices are used as correction factors in the second program algorithm. start DHT21 sensor initialisation DHT21 sensor input Result of temperature & humidity sensor end Figure 5. DHT21 sensor testing programming algorithm Serial monitor The program was first validated using the Arduino IDE before being uploaded to the ESP32 microcontroller via a data cable. This validation is essential to identify any errors in the code. If any errors are present, the program cannot be uploaded to the ESP32 microcontroller. International Journal of Engineering Continuity, ISSN 2963-2390, Volume 4 Number 1 March 2025 <u>[https://doi.org/10.58291/ijec.v4i1.309](https://doi.org/10.58291/ijec.v4i1.309)</u> 10 <mark>International Journal of Engineering Continuity</mark> After uploading the program, the DHT21 sensor detects the air temperature and humidity values, which are displayed through the Arduino IDE serial monitor. The results from the DHT21 sensor, along with the readings from the KAN-certified temperature (Temp) and humidity (Rh) measuring device, are presented in table 1. Table 1: DHT21 sensor reading validation Number Reading result KAN vs DHT21 gap KAN DHT21 Temp <sup>o</sup> C Rh % Temp <sup>o</sup> C Rh % Temp <sup>o</sup> C Rh % <u>1</u> <u>24</u> <u>49.7</u> <u>24.3</u> <u>55</u> <u>-0.3</u> <u>-5.3</u> <u>2</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>54.9</u> <u>-0.2</u> <u>-5.2</u> <u>3</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>55</u> <u>-0.2</u> <u>-5.3</u> <u>4</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>55</u> <u>-0.2</u> <u>-5.3</u> <u>5</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>55.1</u> <u>-0.2</u> <u>-5.4</u> <u>6</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>55</u> <u>-0.2</u> <u>-5.3</u> <u>7</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>55</u> <u>-0.2</u> <u>-5.3</u> <u>8</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>55.1</u> <u>-0.2</u> <u>-5.4</u> <u>9</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>55.1</u> <u>-0.2</u> <u>-5.4</u> <u>10</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>55.1</u> <u>-0.2</u> <u>-5.4</u> <u>11</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>55.1</u> <u>-0.2</u> <u>-5.4</u> <u>12</u> <u>24</u> <u>49.7</u> <u>24.3</u> <u>55.1</u> <u>-0.3</u> <u>-5.4</u> <u>13</u> <u>24</u> <u>49.7</u> <u>24.3</u> <u>54.9</u> <u>-0.3</u> <u>-5.2</u> <u>14</u> <u>24</u> <u>49.7</u> <u>24.3</u> <u>54.9</u> <u>-0.3</u> <u>-5.2</u> <u>15</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>55</u> <u>-0.2</u> <u>-5.3</u> <u>16</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>55</u> <u>-0.2</u> <u>-5.3</u> <u>17</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>54.9</u> <u>-0.2</u> <u>-5.2</u> <u>18</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>55</u> <u>-0.2</u> <u>-5.3</u> <u>19</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>55</u> <u>-0.2</u> <u>-5.3</u> <u>20</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>55</u> <u>-0.2</u> <u>-5.3</u> <u>21</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>55</u> <u>-0.2</u> <u>-5.3</u> <u>22</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>55</u> <u>-0.2</u> <u>-5.3</u> <u>23</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>54.9</u> <u>-0.2</u> <u>-5.2</u> <u>24</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>54.8</u> <u>-0.2</u> <u>-5.1</u> <u>25</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>54.8</u> <u>-0.2</u> <u>-5.1</u> <u>26</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>55</u> <u>-0.2</u> <u>-5.3</u> <u>27</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>54.9</u> <u>-0.2</u> <u>-5.2</u> <u>28</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>54.9</u> <u>-0.2</u> <u>-5.2</u> <u>29</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>54.8</u> <u>-0.2</u> <u>-5.1</u> <u>30</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>54.8</u> <u>-0.2</u> <u>-5.1</u> <u>31</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>54.8</u> <u>-0.2</u> <u>-5.1</u> <u>32</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>54.9</u> <u>-0.2</u> <u>-5.2</u> <u>33</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>54.8</u> <u>-0.2</u> <u>-5.1</u> <u>34</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>54.9</u> <u>-0.2</u> <u>-5.2</u> <u>35</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>54.8</u> <u>-0.2</u> <u>-5.1</u> <u>36</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>54.9</u> <u>-0.2</u> <u>-5.2</u> <u>37</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>54.8</u> <u>-0.2</u> <u>-5.1</u> <u>38</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>54.9</u> <u>-0.2</u> <u>-5.2</u> <u>39</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>54.9</u> <u>-0.2</u> <u>-5.2</u> <u>40</u> <u>24</u> <u>49.7</u> <u>24.2</u> <u>54.8</u> <u>-0.2</u> <u>-5.1</u> <u>Mean</u> <u>24</u> <u>49.7</u> <u>24.21</u> <u>54.94</u> <u>-0.21</u> <u>-5.3</u> International Journal of Engineering Continuity, ISSN 2963-2390, Volume 4 Number 1 March 2025 <u>[https://doi.org/10.58291/ijec.v4i1.309](https://doi.org/10.58291/ijec.v4i1.309)</u> 11 <mark>International Journal of Engineering Continuity</mark> From the table above, it is observed that when the room temperature is set at 24°C and the humidity at 49.7%, the DHT21 sensor records an average temperature of 24.21°C and humidity of 54.94%. This discrepancy indicates that a correction factor of -0.21 for temperature and 5.3 for humidity is required. These correction factors will be applied to refine the second programme algorithm, the algorithm for maintaining optimal temperature and humidity, illustrated in Figure 6. start DHT21 sensor initialisation DHT21 sensor input Temp 33o Temp 27o Rh 65% Rh 55% end Figure 6. The second programming algorithm Relay 1 on Relay 1 on Relay 2 on Relay 2 on In this system, the relay's on-off function is controlled based on the temperature and humidity readings from the DHT21 sensor. After uploading the program, the system was tested under various environmental conditions to assess the control's effectiveness. The testing was conducted using black box testing. The testing procedure involved inputting temperature and humidity data from the DHT21 sensor, defining the expected output parameters, and observing the control unit's behavior. International Journal of Engineering Continuity, ISSN 2963-2390, Volume 4 Number 1 March 2025 <u>[https://doi.org/10.58291/ijec.v4i1.309](https://doi.org/10.58291/ijec.v4i1.309)</u> 12 <mark>International Journal of Engineering Continuity</mark> Conclusions were drawn on whether the observed results matched the expected outcomes. Table 2 contains the results of testing the programme to maintain temperature and humidity at optimal limits. Table 2: Programme input and output testing Input Data Desired Result Observation <u>Result</u> Temperature and humidity values read by DHT21 sensor Digital temperature and humidity values DHT21 sensor readings are functioning as <u>expected</u> Conclusion Accepted <u>Temperature ≥ 33</u> <sup>o</sup> <u>Relay 1 activated</u> <u>Result as expected</u> <u>Accepted</u> <u>Temperature ≤ 27</u> <sup>o</sup> <u>Relay 1 activated</u> <u>Result as expected</u> <u>Accepted</u> <u>Humidity ≥ 65%</u> <u>Relay 2 activated</u> <u>Result as expected</u> <u>Accepted</u> <u>Humidity ≤ 55%</u> <u>Relay 2 activated</u> <u>Result as expected</u> <u>Accepted</u> During testing, the DHT21 sensor readings, displayed in the Arduino IDE serial monitor, showed that Relay 1 reliably activated when temperature values exceeded 33°C or fell below 27°C, while Relay 2 engaged when humidity levels crossed 65% or dropped below 55%. These observations align with the expected behavior of the system, validating its effectiveness for climate control in textile storage environments. If the storage temperature exceeds 33°C, textiles are prone to accelerated degradation, including color fading, fiber brittleness, and a heightened risk of microbial growth, especially when humidity levels exceed 65%. High humidity promotes the growth of mold and mildew, which severely damages fabric integrity, particularly in natural fibers like cotton and wool. Mold thrives at humidity levels above 70%, leading to stains and weakening of the fabric structure. On the other hand, when temperature falls below 27°C and relative humidity drops below 55%, the environment becomes excessively dry, increasing static electricity and brittleness in textiles, notably in cotton and wool fibers. Low humidity can also lead to shrinkage and stiffening of fibers, making textiles more vulnerable to damage during handling and reducing their longevity. Thus, maintaining a storage temperature of 27-33°C and humidity levels between 55-65% is crucial for preserving textile quality by preventing microbial growth and fiber degradation due to extreme environmental conditions. The implementation of an ESP32-based climate control system in textile storage environments presents specific challenges that require careful consideration, especially when scaling up for larger spaces or adapting to fluctuating climate conditions. In extensive storage areas, issues such as signal strength may necessitate multiple ESP32 units or repeaters to maintain consistent coverage. Additionally, larger environments might exhibit temperature and humidity gradients, which could require deploying sensors at strategic points for accurate and uniform environmental monitoring. In climates with high variability, dynamic International Journal of Engineering Continuity, ISSN 2963-2390, Volume 4 Number 1 March 2025 <u>[https://doi.org/10.58291/ijec.v4i1.309](https://doi.org/10.58291/ijec.v4i1.309)</u> 13 <mark>International Journal of Engineering Continuity</mark> adjustments to fluctuating external conditions could be achieved through predictive algorithms or machine learning models. Compared to traditional climate control systems, the ESP32 microcontroller offers distinct advantages, particularly in textile storage. Its integrated Wi-Fi and Bluetooth capabilities allow flexible, real-time data transmission without extensive wiring, which reduces installation complexity and cost. Furthermore, the ESP32’s compatibility with IoT platforms enables seamless integration with cloud-based systems for remote monitoring and control— functionality that traditional systems often lack. The ESP32’s low power consumption further reduces operational costs, making it especially suitable for continuous monitoring environments. Although industrial controllers like STM32 offer higher processing power for more demanding applications, the ESP32 balances functionality and cost-effectiveness, making it ideal for medium-sized environments with budget constraints. Its open-source nature also allows for customization to meet specific storage conditions, delivering a more tailored solution than generic climate control systems. ## Conclusions This study successfully developed a temperature and humidity control system for textile storage, utilizing an ESP32 microcontroller integrated with a DHT21 sensor and a relay system to maintain optimal environmental conditions. The system is programmed to automatically adjust the climate based on sensor readings, ensuring that storage temperatures remain between 27-33°C and humidity levels between 55-65%. This study confirms the effectiveness of an ESP32-based temperature and humidity control system for textile storage, yet several enhancements could broaden its application and precision. Implementing remote monitoring through a mobile application or web interface would enable real-time monitoring and on-the spot adjustments to climate conditions from any location. Moreover, integrating additional sensors, such as CO₂ and volatile organic compounds (VOC) sensors, would optimize storage environments by monitoring air quality variables that affect textile preservation. These additions would increase the system's versatility, allowing it to meet more complex storage requirements. Future research should also explore long-term stability and efficiency in diverse textile storage settings, such as large warehouses and spaces with frequent climate fluctuations. Longitudinal studies across various real-world storage environments would reveal how the system withstands operational stresses over time, providing key insights into its durability and maintenance needs. This would be especially useful for industries with varied inventories requiring specific climate conditions. However, the current testing was limited to controlled environments, which, while establishing initial efficacy, do not fully reflect the dynamic conditions of active textile storage. Real-world testing in operational International Journal of Engineering Continuity, ISSN 2963-2390, Volume 4 Number 1 March 2025 <u>[https://doi.org/10.58291/ijec.v4i1.309](https://doi.org/10.58291/ijec.v4i1.309)</u> 14 <mark>International Journal of Engineering Continuity</mark> storage facilities is recommended to evaluate the system’s performance amidst environmental variables like power fluctuations, human activity, and seasonal climate changes. Such testing would validate the system’s robustness, flexibility, and overall practicality, providing a clearer understanding of its scalability and effectiveness in large-scale industrial applications. ## References Afifuddin, M., Harianto, D., Sugiyarto, S., Eddy, Y. S., Yulianto, B., & Darmawi, A. (2021). DESIGNING TEXTILE WASTE SHREDDER MACHINE FOR CONTINOUS PRODUCT. _Journal of Industrial Engineering Management_, _6_ (1), 1– 7. https://doi.org/10.33536/JIEM.V6I1.736 Amelia Silitonga, N., Hanan Dio Samartha, L., Adi Wiguna, T., Baidawi, M., & Saifudin, A. (2023). _OKTAL_ _: Jurnal Ilmu Komputer dan Science Pengujian Black Box Testing_ _Pada Aplikasi Absensi Berbasis Web Di Sekolah SDN Duri Kepa 01_ . _2_ (5). https://journal.mediapublikasi.id/index.php/oktal Anggrawan, A., Hadi, S., Satria, C., & Triwijoyo, B. K. (2023). Development of an Internet of Things-Based Air Temperature and Humidity Control System for Swiftlet Houses Using Microcontroller ESP32. _Proceedings - 2023 6th International Conference on_ _Computer and Informatics Engineering: AI Trust, Risk and Security Management_ _(AI_ _Trism),_ _IC2IE_ _2023_, 374–380. https://doi.org/10.1109/IC2IE60547.2023.10331251 Ansari, S., Ansari, A., Kumar, A., Kumar, R., & Nyamasvisva, E. T. (2023). Environmental Temperature and Humidity Monitoring at Agricultural Farms using Internet of Things &amp; DHT22-Sensor. _Journal of Independent Studies and Research_ _Computing_, _21_ (2). https://doi.org/10.31645/JISRC.23.21.2.5 Biswas, S. B., & Iqbal, M. T. (2018). Solar Water Pumping System Control Using a Low Cost ESP32 Microcontroller. _Canadian Conference on Electrical and Computer_ _Engineering_, _2018-May_ . https://doi.org/10.1109/CCECE.2018.8447749 Chen, J., & Xiao, J. (2023). Design of intelligent temperature and humidity monitoring system based on STM32. _Journal_ _of_ _Physics:_ _Conference_ _Series_, _2493_ (1). https://doi.org/10.1088/1742-6596/2493/1/012002 Desnanjaya, I. G. M. N., Pradhana, A. A. S., Putra, I. N. T. A., Widiastutik, S., & Nugraha, I. M. A. (2023). Integrated Room Monitoring and Air Conditioning Efficiency Optimization Using ESP-12E Based Sensors and PID Control Automation: A Comprehensive Approach. _Journal of Robotics and Control (JRC)_, _4_ (6), 832–839. https://doi.org/10.18196/JRC.V4I6.18868 El-Khozondar, H. J., Mtair, S. Y., Qoffa, K. O., Qasem, O. I., Munyarawi, A. H., Nassar, Y. F., Bayoumi, E. H. E., & Halim, A. A. E. B. A. El. (2024). A smart energy monitoring International Journal of Engineering Continuity, ISSN 2963-2390, Volume 4 Number 1 March 2025 <u>[https://doi.org/10.58291/ijec.v4i1.309](https://doi.org/10.58291/ijec.v4i1.309)</u> 15 <mark>International Journal of Engineering Continuity</mark> system using ESP32 microcontroller. _E-Prime - Advances in Electrical Engineering,_ _Electronics and Energy_, _9_, 100666. https://doi.org/10.1016/J.PRIME.2024.100666 Emge, A. B., Afrianto, I., & Atin, S. (2020). Temperature and Humidity Monitoring System using Wireless Based Xbee on Hydroponic Plants. _IOP Conference Series: Materials_ _Science_ _and_ _Engineering_, _879_ (1). https://doi.org/10.1088/1757 899X/879/1/012097 Fadara, T. G., & Wong, K. Y. (2022). A decision support system for sustainable textile product assessment. _Textile_ _Research_ _Journal_, _93_ (9–10), 1971–1989. https://doi.org/10.1177/00405175221135167 Fauzi, M. A., Hidayat, R., & Hidayat, T. (2023). Storage Room Temperature and Humidity Monitoring Iot- Based Medicine. _Teknokom_, _6_ (2), 78–85. https://doi.org/10.31943/teknokom.v6i2.135 Geck, C. C., Alsaad, H., Voelker, C., & Smarsly, K. (2024). Personalized low-cost thermal comfort monitoring using IoT technologies. _Indoor Environments_, _1_ (4), 100048. https://doi.org/10.1016/J.INDENV.2024.100048 Hale, S. (n.d.). _The importance of humidity control in textile processing | Knowledge Hub_ . Retrieved October 28, 2024, from https://www.condair.co.uk/knowledge-hub/the importance-of-humidity-control-in-textile-processing Hao, Z., Zhao, L., & Han, M. (2022). Design of warehouse monitoring system based on Internet of Things. In X. Ye, F. Falcone, & H. Cui (Eds.), _2nd International_ _Conference on Internet of Things and Smart City (IoTSC 2022_ ) (p. 49). SPIE. https://doi.org/10.1117/12.2636611 Harianto, D., Sugiyarto, S., & Wulandari, A. (2023). Pengaruh Jumlah Lilitan Roving pada Flyer terhadap Kerataan Roving dan Kekuatan Benang yang Dihasilkan. _Jurnal_ _Tekstil: Jurnal Keilmuan Dan Aplikasi Bidang Tekstil Dan Manajemen Industri_, _6_ (1), 37–41. https://doi.org/10.59432/jute.v6i1.52 Hercog, D., Lerher, T., Truntič, M., & Težak, O. (2023). Design and Implementation of ESP32 Based IoT Devices. _Sensors_, _23_ (15), 6739. https://doi.org/10.3390/s23156739 Hossain, M. T., Shahid, M. A., Limon, M. G. M., Hossain, I., & Mahmud, N. (2024). Techniques, applications, and challenges in textiles for a sustainable future. _Journal_ _of Open Innovation: Technology, Market, and Complexity_, _10_ (1), 100230. https://doi.org/10.1016/J.JOITMC.2024.100230 Huang, Z., Du, X., Gou, Y., & Li, Q. (2021). Design of temperature and humidity control system based on ARM. _IMCEC 2021 - IEEE 4th Advanced Information_ _Management, Communicates, Electronic and Automation Control Conference_, 1564–1569. https://doi.org/10.1109/IMCEC51613.2021.9482228 International Journal of Engineering Continuity, ISSN 2963-2390, Volume 4 Number 1 March 2025 <u>[https://doi.org/10.58291/ijec.v4i1.309](https://doi.org/10.58291/ijec.v4i1.309)</u> 16 <mark>International Journal of Engineering Continuity</mark> Ismail, M. S., Mohammed, M. F., Sivaraman, K. N., Sivaraman, S. N., & Hussain, M. I. (2021). Smart IoT temperature and humidity alert system at aircraft composite storage area. _AIP Conference Proceedings_, _2339_ . https://doi.org/10.1063/5.0044198 Kumari, A., Agarwal, A., Sengupta, A., & Garg, Y. (2023). Conducting Yarn based Capacitive Humidity Sensor. _2023 IEEE Applied Sensing Conference (APSCON)_, 1–3. https://doi.org/10.1109/APSCON56343.2023.10101251 Liao, L., Chen, J., Li, H., Zeng, Y., Shang, W., Guo, J., Sporea, C., Toma, A., & Sajedi, S. (2020). Using black-box performance models to detect performance regressions under varying workloads: an empirical study. _Empirical Software Engineering_, _25_ (5), 4130–4160. https://doi.org/10.1007/S10664-020-09866-Z/METRICS MacHeso, P., Chisale, S., Daka, C., Dzupire, N., Mlatho, J., & Mukanyirigira, D. (2021). Design of Standalone Asynchronous ESP32 Web-Server for Temperature and Humidity Monitoring. _2021 7th International Conference on Advanced Computing and_ _Communication_ _Systems,_ _ICACCS_ _2021_, 635–638. https://doi.org/10.1109/ICACCS51430.2021.9441845 Mashuri, A. A., & Zulfa, N. (2021). Air Quality Monitoring System in Semarang City Based on IoT. _Rekayasa_ _: Jurnal Penerapan Teknologi Dan Pembelajaran_, _18_ (2), 44–51. https://doi.org/10.15294/REKAYASA.V18I2.27804 Memon, J. A., Aziz, A., & Qayyum, M. (2020). The Rise and Fall of Pakistan’s Textile Industry: An Analytical View. _European Journal of Business and Management_, _12_ (12). https://doi.org/10.7176/EJBM/12-12-12 Mubarakah, N., Soeharwinto, & Iddha, F. (2022). Prototype An ESP32-Based Room Humidity and Temperature Controller with IoT. _Proceeding - ELTICOM 2022: 6th_ _International Conference on Electrical, Telecommunication and Computer_ _Engineering_ _2022_, 121–126. https://doi.org/10.1109/ELTICOM57747.2022.10038085 Mubarak, H., Rizal, M., Iqbal, I., Waris, A., Sapsal, M. T., & Suelfikhar, I. (2022). Design of a Greenhouse Room Temperature and Humidity Control System Using a DHT 22 Sensor. _Jurnal Agritechno_, _15_ (02), 160–165. https://doi.org/10.20956/AT.VI.943 Narayana, T. L., Venkatesh, C., Kiran, A., J, C. B., Kumar, A., Khan, S. B., Almusharraf, A., & Quasim, M. T. (2024). Advances in real time smart monitoring of environmental parameters using IoT and sensors. _Heliyon_, _10_ (7), e28195. https://doi.org/10.1016/J.HELIYON.2024.E28195 Narizzano, M., Pulina, L., Tacchella, A., & Vuotto, S. (2020). Automated Requirements-Based Testing of Black-Box Reactive Systems. _Lecture Notes in Computer Science_ _(Including Subseries Lecture Notes in Artificial Intelligence and Lecture Notes in_ International Journal of Engineering Continuity, ISSN 2963-2390, Volume 4 Number 1 March 2025 <u>[https://doi.org/10.58291/ijec.v4i1.309](https://doi.org/10.58291/ijec.v4i1.309)</u> 17 <mark>International Journal of Engineering Continuity</mark> _Bioinformatics)_, _12229 LNCS_, 153–169. https://doi.org/10.1007/978-3-030-55754 6_9 Panahi, M., Hanson, A. J., Maddipatla, D., Masihi, S., Palaniappan, V., & Emani, H. (2022). Development of a FHE Based Temperature and Humidity Sensing System for Asset Monitoring Applications. _2022_ _IEEE_ _Sensors_, 01–04. https://doi.org/10.1109/SENSORS52175.2022.9967273 Prastyo, E. A. (2022, August). _Mengenal_ _Pin_ _GPIO_ _ESP-WROOM-32_ . https://www.arduino.biz.id/2022/08/mengenal-pin-gpio-esp-wroom-32.html Ridho, A., & Musafa, A. (2022, July 6). _PLAN TO BUILD A SYSTEM OF TEMPERATURE_ _AND MOISTURE OPERATING IN AIRCRAFT COMPONENT STORAGE |_ _MAESTRO_ . Jurnal Maestro Vol.5 No.1. April 2022. https://jom.ft.budiluhur.ac.id/index.php/maestro/article/view/410 Saha, K., Dey, P. K., & Kumar, V. (2024). A comprehensive review of circular economy research in the textile and clothing industry. _Journal of Cleaner Production_, _444_ . https://doi.org/10.1016/J.JCLEPRO.2024.141252 Sasmito, G. W., & Mutasodirin, M. A. (2023). Black Box Testing with Equivalence Partitions Techniques in Transcrop Applications. _Proceedings - 2023 6th International_ _Conference on Computer and Informatics Engineering: AI Trust, Risk and Security_ _Management_ _(AI_ _Trism),_ _IC2IE_ _2023_, 53–58. https://doi.org/10.1109/IC2IE60547.2023.10331562 Sasono, S. H., Nugroho, A. S., Supriyanto, E., Hasan, A., & Wasito, E. (2022). IoT Smart Health for Monitoring and Control of Temperature and Humidity of Vaccine and Drug Storage based on Android at Health Center. _JAICT_, _7_ (2), 119–124. https://doi.org/10.32497/JAICT.V7I2.3911 Sugiyarto, S., Harianto, D., & Patticia, E. (2024). Analisis Risiko Kecelakaan Kerja dengan Metode Failure Mode and Effect Analysis (FMEA) pada Departemen Sewing PT LPW. _Jurnal Tekstil: Jurnal Keilmuan Dan Aplikasi Bidang Tekstil Dan_ _Manajemen Industri_, _7_ (1), 27–36. https://doi.org/10.59432/JUTE.V7I1.73 Sunardi, Yudhana, A., & Furizal. (2023). Tsukamoto Fuzzy Inference System on Internet of Things-Based for Room Temperature and Humidity Control. _IEEE Access_, _11_, 6209– 6227. https://doi.org/10.1109/ACCESS.2023.3236183 Wu, Y., Lei, L., Zhang, J. H., Li, L. T., & Zhang, J. (2019). Design of Temperature and Humidity Controller of Warehouse Based On Arduino. _IOP Conference Series: Earth_ _and Environmental Science_, _252_ (3), 032046. https://doi.org/10.1088/1755 1315/252/3/032046 Yi, G., Yang, J., Yanhui, M., & Chao, G. (2021). Design of warehouse monitoring system based on ARM platform. _2021 6th International Conference on Intelligent Computing and_ International Journal of Engineering Continuity, ISSN 2963-2390, Volume 4 Number 1 March 2025 <u>[https://doi.org/10.58291/ijec.v4i1.309](https://doi.org/10.58291/ijec.v4i1.309)</u> 18 <mark>International Journal of Engineering Continuity</mark> _Signal_ _Processing_ _(ICSP)_, 1287–1290. https://doi.org/10.1109/ICSP51882.2021.9408826 Yuan, H., Wang, Z., & Xia, L. (2020). Design of Temperature and Humidity Detection System for a Material Warehouse Based on GM. _Proceedings of 2020 IEEE 4th Information_ _Technology, Networking, Electronic and Automation Control Conference, ITNEC_ _2020_, 2516–2519. https://doi.org/10.1109/ITNEC48623.2020.9085141 Yusof, H. H. M., Harun, S. W., Dimyati, K., Bora, T., Sterckx, K., Mohammed, W. S., & Dutta, J. (2019). Low-Cost Integrated Zinc Oxide Nanorod-Based Humidity Sensors for Arduino Platform. _IEEE_ _Sensors_ _Journal_, _19_ (7), 2442–2449. https://doi.org/10.1109/JSEN.2018.2886584 International Journal of Engineering Continuity, ISSN 2963-2390, Volume 4 Number 1 March 2025 <u>[https://doi.org/10.58291/ijec.v4i1.309](https://doi.org/10.58291/ijec.v4i1.309)</u> 19

섹션 본문 35문단 · 24,466자

(제목 없음)

1Monitoring temperature and humidity in textile storage warehouses is vital for maintaining product quality and ensuring optimal conditions.This study focuses on developing a temperature and humidity control unit using an ESP32 microcontroller, evaluating its performance through black-box testing.The ESP32-based system offers a scalable and energyefficient solution for climate control, delivering precise environmental monitoring through integrated Wi-Fi and Bluetooth for affordable connectivity.Its advanced real-time data processing capabilities and compatibility with multiple sensors make it highly suitable for costeffective, large-scale implementations in textile storage environments.The experimental approach involves controlling temperature and humidity as independent variables, while ensuring optimal storage as the dependent variable.The DHT21 sensor, ESP32 microcontroller, and relay are used as control variables.Software was developed in the Arduino IDE to manage temperature and humidity, and after validation, the program was uploaded to the ESP32 for black box testing.Results confirmed that the system effectively regulates these conditions,

Introduction

2The textile and textile products industry is a key sector of the manufacturing industry and a significant driver of national economic development (Afifuddin et al., 2021).As a substantial contributor to the global economy, the textile industry plays a critical role in economic growth and industrial exports in many countries (Memon et al., 2020).However, the industry's environmental impact has raised concerns about its long-term viability (Fadara & Wong, 2022;Saha et al., 2024).Proper storage conditions are essential to maintaining the quality and durability of textile products.Factors such as high production costs, energy shortages, and outdated technology can indirectly affect storage practices (Memon et al., 2020).Ensuring yarn strength that meets or exceeds standards is crucial for the quality and durability of the final product (Harianto et al., 2023).Moreover, the growing focus on sustainability and the circular economy emphasizes the need for proper storage practices to extend product life and reduce waste (Saha et al., 2024).

3Occupational safety and health are critical to ensuring the continued excellence of a company's workforce.In a production process involving machine tools and a large number of human resources, the risk of accidents is significant (Sugiyarto et al., 2024).Additionally, maintaining high product quality through proper storage practices can significantly improve consumer satisfaction, a key aspect of sustainable textile products (Fadara & Wong, 2022).Yarn unevenness is another critical factor in determining product quality (Harianto et al., 2023).

4Innovations aimed at reducing the environmental impact of the textile industry, such as improvements in waste management and pollution control from dyeing processes, further highlight the importance of proper storage (Hossain et al., 2024).Overall, proper storage conditions are crucial for maintaining product quality and supporting the industry's sustainability initiatives.

5The design of temperature and humidity control units for textile storage rooms is crucial to ensure optimal conditions and prevent product damage.In the textile industry, stored products are highly susceptible to fluctuations in temperature and humidity.Excessive humidity can lead to mould growth, while insufficient humidity can cause fibre desiccation, both of which reduce textile quality.Therefore, the implementation of temperature and humidity control technologies in storage spaces is necessary (Mubarak et al., 2022).An effective temperature and humidity control system should account for factors such as ventilation, air circulation, and the use of sensors for real-time monitoring.For instance, DHT 22 sensors have been proven effective in maintaining stable storage conditions (Fauzi et al., 2023).Other studies emphasize the importance of using humidifiers to maintain the relative humidity balance within storage rooms (Sasono et al., 2022).Advanced technologies, such as Internet of Things (IoT)-based control systems, allow for automatic monitoring and regulation of temperature and humidity to ensure optimal storage conditions (Ridho & Musafa, 2022).

6Monitoring temperature and humidity in textile storage warehouses is critical to preserving product quality and ensuring appropriate storage conditions.Various systems have been developed to address these needs, such as environment monitoring systems utilizing sensors and microcontrollers (Chen & Xiao, 2023), IoT-based warehouse monitoring systems with temperature and humidity sensors and RFID technology (Hao et al., 2022), and intelligent monitoring systems with dual control functions for temperature and humidity (Kumari et al., 2023).Additionally, flexible hybrid electronic systems have been specifically designed for monitoring temperature and humidity in storage containers, offering enhanced durability and resistance to environmental factors (Panahi et al., 2022).The use of conductor yarn for moisture sensing applications in textile warehouses further demonstrates the potential of innovative sensor structures for effective environmental monitoring (Yi et al., 2021).Overall, temperature and humidity monitoring in textile storage warehouses is essential for maintaining product quality, preventing damage, and ensuring compliance with industry standards.

7Existing climate control systems for textile storage, including basic ventilation and automated HVAC systems, face challenges related to precision and adaptability.Basic ventilation setups often fail to accurately regulate temperature and humidity, exposing textiles to risks of degradation from excessive moisture or dryness.Although automated HVAC systems offer enhanced control, they are energy-intensive and expensive to maintain, especially in facilities that require constant environmental stability (Chen & Xiao, 2023).IoT-integrated systems provide improved monitoring capabilities, yet frequently lack the real-time adaptive controls necessary for preserving textiles sensitive to climate fluctuations (Yi et al., 2021).

8Recent technological advancements have enabled the development of diverse environmental monitoring systems, particularly through the integration of ESP32 microcontrollers, valued for their efficiency and cost-effectiveness in climate control across various industries.

9Research underscores the ESP32's strengths in real-time monitoring, leveraging its processing capabilities and built-in Wi-Fi for precise temperature and humidity regulation.For example, The ESP32 microcontroller is highly suitable for creating temperature and humidity control units for textile product storage rooms, offering multiple advantages over traditional systems.

10ESP32 is a powerful and versatile microcontroller, ideal for IoT applications, including environmental monitoring and control.It features built-in Wi-Fi and Bluetooth capabilities, which makes it highly suitable for wireless communication and remote monitoring (Ansari et al., 2023).The superior processing power of ESP32, operating at speeds of up to 240 MHz compared to the 16 MHz of the Arduino UNO, allows for more complex tasks and faster data processing (Ansari et al., 2023).For temperature and humidity sensing, the DHT22 sensor is recommended due to its superior performance and accuracy compared to the DHT11 (Ansari et al., 2023).The ESP32 WROOM-32 module, a development board, simplifies the process of learning and experimenting with ESP-WROOM-32-based circuits.The ESP32 chip has several advantages over its predecessors, including higher speed, 32-bit processing, larger memory capacity, and integrated Bluetooth functionality (Prastyo, 2022).However, not all pins on the ESP32 are suitable for every project.Green-highlighted pins are generally safe to use, while yellow-highlighted pins can be used with caution, as some may exhibit unexpected behavior during the boot process.Red-highlighted pins are not recommended for input or output functions (Prastyo, 2022).The ESP32 microcontroller can be programmed to read data from DHT22 sensors and wirelessly transmit it to cloud platforms such as Firebase for storage and analysis (Ansari et al., 2023).This configuration enables real-time monitoring of environmental conditions in storage rooms via smartphones, web applications, or other internet-connected devices (Ansari et al., 2023;Ismail et al., 2021).An interesting application of these systems is the use of predictive modelling.As demonstrated by Yuan et al. (2020), collected temperature and humidity data can be utilized with grey prediction models to forecast future environmental conditions in the storage room.This capability is particularly useful for textile storage, enabling pre-emptive actions to maintain optimal conditions.ESP32-based temperature and humidity control units for textile storage rooms offer real-time monitoring, remote access, and prediction functionalities.mechanisms, such as HVAC systems, when temperature or humidity levels exceed predefined thresholds (Ismail et al., 2021).This ensures optimal storage conditions for textiles, potentially enhancing their quality and longevity.

11The ESP32 microcontroller, similar to the ESP-12E used by Desnanjaya et al. (2023), is suitable for this application due to its wireless communication capabilities and data processing power.The system can collect temperature and humidity data using sensors like the DHT22, as demonstrated by Desnanjaya et al. (2023).These sensors have shown good accuracy, with

Research Method

12This study employs an experimental approach aimed at designing, develop and testing a temperature and humidity control unit for a textile storage room.The design uses an ESP32 microcontroller as the central control system, utilizing control algorithms based on temperature and humidity sensors.The research object is a textile storage room that requires optimal temperature and humidity conditions.This study includes three variables: the independent variable is controlled temperature and humidity; the dependent variable is the optimal condition of the textile storage room; and the control variables are the DHT21 sensor, ESP32 microcontroller, and relay.The research process consists of four stages: preparation, device design, testing and data analysis, and finally, conclusion, as illustrated in Figure 3.The preparation phase begins by gathering references and relevant literature for this research, followed by the formulation of the research problem and objectives.In the design phase, a control system is developed using the ESP32 microcontroller.The data testing and analysis section of this study comprises two main stages: testing the accuracy of the DHT21 sensor for temperature and humidity measurements, and assessing the functionality of the program using the black box testing method to ensure optimal temperature and humidity control.

13First, the sensor accuracy test involved comparing the DHT21 sensor readings with those of manual instruments certified by the National Accreditation Committee (KAN).These measurements were performed in a controlled environment to verify the sensor's precision.

14Each reading from the DHT21 sensor was analyzed by recording its deviation from the certified instrument values, allowing the evaluation of the sensor's consistency and accuracy across different conditions.

15Second, the ESP32 system function test employed the black box testing method, which evaluates the system's outputs without considering the internal program structure.Stability, evaluating the system's ability to sustain consistent conditions without fluctuations, essential in settings requiring steady conditions, such as textile storage.

16While controlled testing environments for ESP32-based humidity and temperature systems provide consistency, they may not capture real-world variability.Controlled settings are effective for establishing baseline performance but often exclude factors like power surges and ambient fluctuations common in actual deployment scenarios (Narayana et al., 2024).For instance, research on IoT-based monitoring systems has shown that laboratory conditions support stable accuracy but may not predict challenges encountered in dynamic real-world environments (Geck et al., 2024).

17Real-world testing, therefore, is advised to increase the applicability of results.Deploying the ESP32 system in variable field settings where temperature and humidity fluctuate over time would more accurately assess its responsiveness and stability under diverse conditions (Fauzi et al., 2023).Incorporating an alarm feature, as seen in IoT applications, could also provide valuable data on system adaptability and notification accuracy under different operational stresses (Mashuri & Zulfa, 2021).Together, these methods offer a thorough evaluation of the system's robustness and resilience in practical applications.

Result and Discussion

18The ESP32 is assembled with other components and connected to a 5-volt power supply.The analogue input of the ESP32 microcontroller is connected to the DHT21 temperature and humidity sensor via a 10k-ohm resistor.This resistor limits the current and ensures signal stability for humidity measurements (Yusof et al., 2019).As noted by (Wu et al., 2019), the resistor helps maintain sensor signal stability when interfacing with Arduino.In this setup, the digital pin output of the ESP32 is connected to a relay.The laptop is used to upload the program to the ESP32 microcontroller.The tool assembly schematic is illustrated in Figure 4.After assembling the equipment, the next step is to develop programming algorithms using the Arduino IDE.Two algorithms were developed: the first tests the reading accuracy of the DHT21 sensor, and the second maintains the temperature and humidity within optimal limits.

19The optimal range in the textile product storage room is 55% -65% for humidity and 27 -33 for temperature (Hale, n.d.).These values are used as limit parameters for the program created with the Arduino IDE.After uploading the program, the DHT21 sensor detects the air temperature and humidity values, which are displayed through the Arduino IDE serial monitor.The results from the DHT21 sensor, along with the readings from the KAN-certified temperature (Temp) and humidity (Rh) measuring device, are presented in table 1.From the table above, it is observed that when the room temperature is set at 24°C and the humidity at 49.7%, the DHT21 sensor records an average temperature of 24.21°C and humidity of 54.94%.This discrepancy indicates that a correction factor of -0.21 for temperature and -5.3 for humidity is required.These correction factors will be applied to refine the second programme algorithm, the algorithm for maintaining optimal temperature and humidity, illustrated in Figure 6.In this system, the relay's on-off function is controlled based on the temperature and humidity readings from the DHT21 sensor.After uploading the program, the system was tested under various environmental conditions to assess the control's effectiveness.The testing was conducted using black box testing.

20The testing procedure involved inputting temperature and humidity data from the DHT21 sensor, defining the expected output parameters, and observing the control unit's behavior.Conclusions were drawn on whether the observed results matched the expected outcomes.

21Table 2 contains the results of testing the programme to maintain temperature and humidity at optimal limits.During testing, the DHT21 sensor readings, displayed in the Arduino IDE serial monitor, showed that Relay 1 reliably activated when temperature values exceeded 33°C or fell below 27°C, while Relay 2 engaged when humidity levels crossed 65% or dropped below 55%.These observations align with the expected behavior of the system, validating its effectiveness for climate control in textile storage environments.If the storage temperature exceeds 33°C, textiles are prone to accelerated degradation, including color fading, fiber brittleness, and a heightened risk of microbial growth, especially when humidity levels exceed 65%.High humidity promotes the growth of mold and mildew, which severely damages fabric integrity, particularly in natural fibers like cotton and wool.Mold thrives at humidity levels above 70%, leading to stains and weakening of the fabric structure.On the other hand, when temperature falls below 27°C and relative humidity drops below 55%, the environment becomes excessively dry, increasing static electricity and brittleness in textiles, notably in cotton and wool fibers.

22Low humidity can also lead to shrinkage and stiffening of fibers, making textiles more vulnerable to damage during handling and reducing their longevity.Thus, maintaining a storage temperature of 27-33°C and humidity levels between 55-65% is crucial for preserving textile quality by preventing microbial growth and fiber degradation due to extreme environmental conditions.

Conclusions

23This study successfully developed a temperature and humidity control system for textile storage, utilizing an ESP32 microcontroller integrated with a DHT21 sensor and a relay system to maintain optimal environmental conditions.The system is programmed to automatically adjust the climate based on sensor readings, ensuring that storage temperatures remain between 27-33°C and humidity levels between 55-65%.This study confirms the effectiveness of an ESP32-based temperature and humidity control system for textile storage, yet several enhancements could broaden its application and precision.Implementing remote monitoring through a mobile application or web interface would enable real-time monitoring and on-thespot adjustments to climate conditions from any location.Moreover, integrating additional sensors, such as CO₂ and volatile organic compounds (VOC) sensors, would optimize storage environments by monitoring air quality variables that affect textile preservation.These additions would increase the system's versatility, allowing it to meet more complex storage requirements.Future research should also explore long-term stability and efficiency in diverse textile storage settings, such as large warehouses and spaces with frequent climate fluctuations.Longitudinal studies across various real-world storage environments would reveal how the system withstands operational stresses over time, providing key insights into its durability and maintenance needs.This would be especially useful for industries with varied inventories requiring specific climate conditions.However, the current testing was limited to controlled environments, which, while establishing initial efficacy, do not fully reflect the dynamic conditions of active textile storage.Real-world testing in operational storage facilities is recommended to evaluate the system's performance amidst environmental variables like power fluctuations, human activity, and seasonal climate changes.Such testing would validate the system's robustness, flexibility, and overall practicality, providing a clearer understanding of its scalability and effectiveness in large-scale industrial applications.

Figure 1 .

24Figure 1.Pins of the ESP32 development board(Prastyo, 2022)

25The materials and tools used include an ESP32 microcontroller, a DHT21 temperature and humidity sensor, a 5-volt power supply, Arduino IDE software for programming, jumper cables, a laptop, a USB cable to upload the program from the laptop to the ESP32 microcontroller, and a 2-output relay.To validate the DHT21 sensor readings, KAN-certified temperature and humidity measuring devices were employed.

Figure 2 .

26Figure 2. KAN-certified temperature and humidity measuring device Data collection was conducted on September 23, 2024, at the Akademi Komunitas Industri Tekstil dan Produk Tekstil Surakarta.Data were obtained through temperature and humidity

27Figure 3. Stages of research

Figure 4 .Figure 5 .

28Figure 4. Device assembly The algorithm for testing the temperature and humidity readings of the DHT21 sensor is illustrated in Figure 5. Any discrepancies between the DHT21 sensor readings and the results from KAN-certified temperature and humidity measuring devices are used as correction factors in the second program algorithm.

29Figure 6.The second programming algorithm

30(Liao et al., 2020)rin, 2023).58291/ijec.v4i1.3097violations.AmeliaSilitonga et al. (2023)says black box testing is a method used to evaluate the software interface.It is designed to identify errors and ensure that the software functions as intended.This testing approach documents the results, providing evidence of the software's compliance with the specified requirements.Moreover, black box testing has been used to validate a mobile-based agricultural application through the equivalent partitioning technique, achieving a compliance rate of 77% across 13 test cases(Sasmito & Mutasodirin, 2023).Additionally, another study demonstrated that this method could detect performance regression in large-scale software systems by employing a machine learning-based model to analyze the relationship between system performance and runtime activities(Liao et al., 2020).In summary, this research contributes to existing knowledge by offering a practical solution that integrates modern microcontroller technology with climate control requirements in textile storage.The findings of this study aim to support the textile industry by providing a scalable, low-cost solution for climate control, potentially minimizing product degradation and enhancing operational efficiency in textile storage practices.

31(Chen & Xiao, 2023;Desnanjaya et al., 2023)tems to maintain optimal storage conditions for textiles.This approach was further supported byDesnanjaya et al. (2023), who successfully applied PID control to maintain a stable indoor temperature at 25°C.Designing a temperature and humidity control unit for a textile storage room using the ESP32 microcontroller is feasible and promising.By integrating wireless communication, accurate sensors, and control algorithms such as PID, the system can efficiently monitor and regulate the storage environment, thereby potentially improving textile durability and energy efficiency(Chen & Xiao, 2023;Desnanjaya et al., 2023).Despite the promising features of ESP32, gaps in research persist regarding its specific application within textile storage environments.Existing solutions often lack adequate evaluation under storage-specific conditions or do not utilize optimal sensor configurations for humidity-sensitive materials like textiles.This research addresses these gaps by developing a tailored ESP32-based control unit designed to maintain the stringent environmental parameters required for textile storage, enhancing both accuracy and efficiency in maintaining climate stability.method is widely used to identify errors and assess system performance based on the expected input-output behavior.For example, black box testing is applied to responsive systems whose specifications are expressed in temporal logic, enabling the detection of specification International Journal of Engineering Continuity International Journal of Engineering Continuity, ISSN 2963-2390, Volume 4 Number 1

32, ensuring that the conditions remain within optimal limits.The test included scenarios where temperature and humidity exceeded or dropped below predefined values, aiming to verify the system's ability to respond and restore the desired conditions.The black box testing results were analyzed using key performance metrics such as response time, control accuracy,

33The program was tested for its ability to regulate the temperature and humidity in a textile storage International Journal of Engineering Continuity International Journal of Engineering Continuity, ISSN 2963-2390, Volume 4 Number 1 March 2025 https://doi.org/10.58291/ijec.v4i1.3099 room

Table 2 : Programme input and output testing

34Although industrial controllers like STM32 offer higher processing power for more demanding applications, the ESP32 balances functionality and cost-effectiveness, making it ideal for medium-sized environments with budget constraints.Its open-source nature also allows for customization to meet specific storage conditions, delivering a more tailored solution than generic climate control systems.

35International Journal of Engineering Continuity International Journal of Engineering Continuity, ISSN 2963-2390, Volume 4 Number 1 March 2025 https://doi.org/10.58291/ijec.v4i1.30915

참고문헌

참고문헌 정보가 없습니다.