Arduino-Based Moving Average Filter Implementation for Increasing Stability Measurement of Digital Temperature in Climate Monitoring Systems Micro
Abstract
This study evaluated the implementation of a Moving Average Filter (MAF) to improve the stability of digital temperature measurements in an Arduino-based microclimate monitoring system. Although low-cost digital sensors are widely used for real-time environmental monitoring, their readings may fluctuate because of short-term noise, electrical interference, and rapid environmental variation. This study aimed to determine whether a lightweight MAF algorithm could reduce temperature-data variability without substantially altering the overall temperature trend. A quantitative experimental design was employed using an Arduino Uno, a DHT22 digital temperature sensor, and a five-sample MAF window. Temperature data were acquired at one-second intervals under fixed sensor-position and normal environmental conditions. Raw and filtered readings were compared using descriptive statistical parameters, including mean, standard deviation, minimum value, maximum value, and data range. The results showed that the mean temperature remained comparable before and after filtering, decreasing only from 30.17 °C to 30.11 °C. However, the standard deviation decreased from 0.39 to 0.09, while the data range declined from 1.2 °C to 0.3 °C. The reduction in standard deviation indicated a 76.92% decrease in short-term measurement variability. Graphical comparisons also showed that filtered data followed a smoother pattern with fewer abrupt fluctuations than raw sensor readings. These findings indicate that the MAF can improve temperature-data stability in resource-limited embedded systems while maintaining the general environmental trend. Nevertheless, further studies should compare the method with Kalman, median, and adaptive filters under more dynamic environmental conditions and across multiple sensor types.
Downloads
References
Abdinoor, J. A., Hashim, Z. K., Horváth, B., Zsebő, S., Stencinger, D., Hegedüs, G., Bede, L., Ijaz, A., & Kulmány, I. M. (2025). Performance of low-cost air temperature sensors and applied calibration techniques—A systematic review. Atmosphere, 16(7), 842. https://doi.org/10.3390/atmos16070842
Akrami, M., Salah, A. H., Javadi, A. A., Fath, H. E. S., Hassanein, M. J., Farmani, R., Dibaj, M., & Negm, A. (2020). Towards a sustainable greenhouse: Review of trends and emerging practices in analysing greenhouse ventilation requirements to sustain maximum agricultural yield. Sustainability, 12(7), 2794. https://doi.org/10.3390/su12072794
Al-Okby, M. F. R., Junginger, S., Roddelkopf, T., & Thurow, K. (2025). RTIMS: Real-Time Indoor Monitoring Systems: A Comprehensive Review. Applied Sciences, 15(24), 13217. https://doi.org/10.3390/app152413217
Bicamumakuba, E., Reza, M. N., Jin, H., Samsuzzaman, Lee, K.-H., & Chung, S.-O. (2025). Multi-sensor monitoring, intelligent control, and data processing for smart greenhouse environment management. Sensors, 25(19), 6134. https://doi.org/10.3390/su14169997
Chebbi, A., Franchek, M. A., & Grigoriadis, K. (2025). Simultaneous State and Parameter Estimation Methods Based on Kalman Filters and Luenberger Observers: A Tutorial & Review. Sensors, 25(22), 7043. https://doi.org/10.3390/s25227043
Cho, Y., & Park, K. S. (2023). Designing immersive virtual reality simulation for environmental science education. Electronics, 12(2), 315. https://doi.org/10.3390/electronics12020315
Haryono, H. E., Jatmiko, B., Prahani, B. K., Zayyadi, M., Kaniawati, I., & Kurtuluş, M. A. (2024). E-Learning-Based Collaborative as an Effort to Reduce High School Students’ Misconceptions of Heat. Jurnal Pendidikan IPA Indonesia, 13(4). https://doi.org/10.15294/jpii.v13i4
Hoang, M. L., Carratù, M., Paciello, V., & Pietrosanto, A. (2021). Body temperature—indoor condition monitor and activity recognition by mems accelerometer based on IoT-alert system for people in quarantine due to COVID-19. Sensors, 21(7), 2313. https://doi.org/10.3390/s21072313
Hofstetter, D., Wilcox, S. M., Wang, R., Fabian, E. E., & Lorenzoni, A. G. (2025). Environmental Measurement and Control System for Animal Health Research Using Arduino. Sensors, 26(1), 53. https://doi.org/10.3390/s26010053
Iclodean, C., Cordos, N., & Varga, B. O. (2020). Autonomous shuttle bus for public transportation: A review. Energies, 13(11), 2917. https://doi.org/10.3390/en13112917
Li, K., Shi, J., Hu, C., & Xue, W. (2025). The intelligentization process of agricultural greenhouse: A review of control strategies and modeling techniques. Agriculture, 15(20), 2135. https://doi.org/10.3390/agriculture15202135
Luo, J., Guo, J., Zhao, G., Shao, Y., Yin, Z., & Li, G. (2026). Design of an intelligent inspection system for power equipment based on multi-technology integration. Electronics, 15(4), 827. https://doi.org/10.3390/electronics15040827
Ma, X., Wang, J., Zhou, K., Zhang, W., & Chen, A. (2025). Uncertainty in soil elemental prediction using machine learning and hyperspectral remote sensing. Journal of Hazardous Materials, 494, 138502. https://doi.org/10.1016/j.jhazmat.2025.138502
Martha, A. S. D., Junus, K., Santoso, H. B., & Suhartanto, H. (2021). Assessing undergraduate students’e-learning competencies: A case study of higher education context in Indonesia. Education Sciences, 11(4), 189. https://doi.org/10.3390/educsci11040189
Minh, T. Q., Van, T. N., Nguyen, H. X., & Nguyễn, Q. (2025). Enhancing the Structural Health Monitoring (SHM) through data reconstruction: Integrating 1D convolutional neural networks (1DCNN) with bidirectional long short-term memory networks (Bi-LSTM). Engineering Structures, 340, 120767. https://doi.org/10.1016/j.engstruct.2025.120767
Nagarsheth, S., Agbossou, K., Henao, N., & Bendouma, M. (2025). The advancements in agricultural greenhouse technologies: an energy management perspective. Sustainability, 17(8), 3407. https://doi.org/10.3390/su17083407
Ozgen, S., Wu, A., & Ruiz, F. (2025). Modeling approaches for data-driven model predictive control of acid gases in waste-to-energy plants. Waste Management, 204, 114902. https://doi.org/10.1016/j.wasman.2025.114902
Paraskevas, K., & Christos, T. (2025). Data preprocessing and feature engineering for data mining: Techniques, tools, and best practices. Ai, 6(10), 257. https://doi.org/10.3390/ai6100257
Pieters, O., Deprost, E., Van Der Donckt, J., Brosens, L., Sanczuk, P., Vangansbeke, P., De Swaef, T., De Frenne, P., & Wyffels, F. (2021). MIRRA: A modular and cost-effective microclimate monitoring system for real-time remote applications. Sensors, 21(13), 4615. https://doi.org/10.3390/s21134615
Riany, Y. E., Meredith, P., & Cuskelly, M. (2017). Understanding the influence of traditional cultural values on Indonesian parenting. Marriage & Family Review, 53(3), 207–226. https://doi.org/10.1080/01494929.2016.1157561
Rivera, A., Ponce, P., Mata, O., Molina, A., & Meier, A. (2023). Local weather station design and development for cost-effective environmental monitoring and real-time data sharing. Sensors, 23(22), 9060. https://doi.org/10.3390/s23229060
Rudavskyi, I., Klym, H., Kostiv, Y., Karbovnyk, I., Zhydenko, I., Popov, A. I., & Konuhova, M. (2024). Utilizing an Arduino Uno-based system with integrated sensor data fusion and filtration techniques for enhanced air quality monitoring in residential spaces. Applied Sciences, 14(19), 9012. https://doi.org/10.3390/app14199012
Sarwanto, L. E. W. F. & C. (2021). CRITICAL THINKING SKILLS AND THEIR IMPACTS. 2(2), 161–187. . https://doi.org/10.32890/mjli2021.18.2.6
Shu, X., Li, Y., Wei, K., Yang, W., Yang, B., & Zhang, M. (2025). Research on the output characteristics and SOC estimation method of lithium-ion batteries over a wide range of operating temperature conditions. Energy, 317, 134726. https://doi.org/10.1016/j.energy.2025.134726
Solihah, P. A., Kaniawati, I., Samsudin, A., & Riandi, R. (2024). Prototype of greenhouse effect for improving problem-solving skills in science, technology, engineering, and mathematics (STEM)-education for sustainable development (ESD): Literature review, bibliometric, and experiment. Indonesian Journal of Science and Technology, 9(1), 163–190. https://doi.org/10.17509/ijost.v9i1.66773
Suhaimi, A. F., Mutiara, G. A., & Rizal, M. F. (2025). Leveraging Embedded Accelerometers and Machine Learning for Real-Time Sheep Behavior Classification in Precision Farming. IEEE Access. https://doi.org/10.1109/ACCESS.2025.3612098
Velumani, D., & Bansal, A. (2025). Temperature estimation in a lithium-ion cell using a machine learning based approach. Applied Thermal Engineering, 270, 126201. https://doi.org/10.1016/j.applthermaleng.2025.126201
Wang, M., & Li, T. (2025). Pest and disease prediction and management for sugarcane using a hybrid autoregressive integrated moving average—a long short-term memory model. Agriculture, 15(5), 500. https://doi.org/10.3390/agriculture15050500
Wang, Y., Zhao, F., Luo, L., & Li, X. (2025). A review on recent advances in signal processing in interferometry. Sensors, 25(16), 5013. https://doi.org/10.3390/s25165013
Wijeratne, V. P. I. S., Mehmood, M. S., Jayatunga, J. N. D., & Manawadu, L. (2026). An Integrated Participatory Framework for Climate-Smart Agricultural Practices from the Lens of Climate Change, Farmers’ Perceptions and Adaptations. Sustainability, 18(7), 3401. https://doi.org/10.3390/su18073401
Zhang, X., Ding, Y., Huang, X., Li, W., Long, L., & Ding, S. (2024). Smart classrooms: How sensors and ai are shaping educational paradigms. Sensors, 24(17), 5487. https://doi.org/10.3390/s24175487
Zhang, Y., Bi, Y., Wang, L., Li, J., & Liu, Z. (2025). Precise Positioning Method of Unmanned Aerial Vehicle in Enclosed Environments by Integrating Multi-Sensor Information: Application of a Kalman Filter and Particle Filter Fusion Model Based on Dynamic Environment Adaptation. IEEE Access, 13, 208094–208104. https://doi.org/10.1109/ACCESS.2025.3641189
Copyright (c) 2026 Moh Habibush Shidqi, Farid Baskoro, Rifqi Firmansyah, Lilik Anifah

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with ISEJ: Indonesian Science Education Journal agree to the following terms:
- Authors retain copyright and grant the ISEJ: Indonesian Science Education Journal right of first publication with the work simultaneously licensed under Creative Commons Attribution License (CC BY 4.0) that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors can enter into separate, additional contractual arrangements for the non-exclusive distribution of the published version of the work (e.g., post it to an institutional repository or edit it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) before and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work.





