Integrated Science Education Journal
Integrated Science Education Journal

an Open Access Journal

SINTA

6.1

Impact

GScholar

18

H-Index

Integrated Science Education Journal

an Open Access Journal


Comparative Analysis of Sensor Reading Accuracy Between Arduino and ESP32 Microcontrollers for TDS Sensor Measurements

Share
  • Purpose of the study: This study aims to compare the performance of Arduino UNO and ESP32 microcontrollers in TDS sensor measurements, evaluating reading accuracy, response speed, and reading stability to recommend the most suitable microcontroller platform for water quality monitoring applications.

    Methodology: Tools & Hardware: TDS sensor, Arduino UNO (ATmega328P, 10-bit ADC), ESP32 NodeMCU (12-bit ADC), TDS meter (reference instrument). Methods: Waterfall methodology, literature review, direct observation, potentiometer testing, and voltage measurement. Water samples tested at 101, 201, 300, 406, and 515 PPM concentrations, each with three repetitions at room temperature (~20–21°C).

    Main Findings: Arduino UNO achieved average voltage errors of 0.21%–2.12% across all TDS concentrations, compared to ESP32's 13.1%–54.32%. ESP32 misread 101 PPM as 48 PPM (54.32% error). Arduino UNO's standard deviation was 0.064 ADC versus ESP32's 2.019 ADC 31.5 times more variable confirming Arduino UNO's superior accuracy and stability for TDS sensor measurements.

    Novelty/Originality of this study: This Arduino UNO achieved average voltage errors of 0.21%–2.12% across all TDS concentrations, compared to ESP32's 13.1%–54.32%. ESP32 misread 101 PPM as 48 PPM (54.32% error). Arduino UNO's standard deviation was 0.064 ADC versus ESP32's 2.019 ADC — 31.5 times more variable confirming Arduino UNO's superior accuracy and stability for TDS sensor measurements.

  • How to cite

    [1]
    “Comparative Analysis of Sensor Reading Accuracy Between Arduino and ESP32 Microcontrollers for TDS Sensor Measurements”, In. Sci. Ed. J, vol. 7, no. 2, pp. 360–369, Mar. 2026, doi: 10.37251/isej.v7i2.2771.
  • 303
    Abstract views
    131
    Downloads

    Metrics — Badges

    1. S. R. Laha, B. K. Pattanayak, and S. Pattnaik, “Advancement of environmental monitoring system using IoT and sensor: A comprehensive analysis. AIMS Environmental Science, vol. 9, no. 6, pp. 771-800, 2022. doi: 10.3934/environsci.2022044. DOI: https://doi.org/10.3934/environsci.2022044
    2. O. V. Medagedara, and M. H. Liyanage, “Development of an IoT-based real-time temperature and humidity monitoring system for factory electrical panel rooms,” Engineering Journal of Institute of Engineers Sri Lanka, vol. 57, no. 1, pp. 21-30, 2024, doi: 10.4038/engineer.v57i1.7636. DOI: https://doi.org/10.4038/engineer.v57i1.7636
    3. T. Tanti, W. Utami, D. Deliza, and M. Jahanifar, “Investigation in vocation high school for attitude and motivation students in learning physics subject”, Journal Evaluation in Education (JEE), vol. 6, no. 2, pp. 479-490, 2025, doi: 10.37251/jee.v6i2.1452. DOI: https://doi.org/10.37251/jee.v6i2.1452
    4. H. M. Forhad, M. R. Uddin, R. S. Chakrovorty, A. M. Ruhul, H. M. Faruk, S. Kamruzzaman, and A. M. Morshed, “IoT based real-time water quality monitoring system in water treatment plants (WTPs),” Heliyon, vol. 10, no. 23, 2024, doi: 10.1016/j.heliyon.2024.e40746. DOI: https://doi.org/10.1016/j.heliyon.2024.e40746
    5. M. Babiuch, P. Foltynek, and P. Smutny, “Using the ESP32 microcontroller for data processing,” MATEC Web of Conferences, vol. 292, p. 01011, 2019, doi: 10.1051/matecconf/201929201011. DOI: https://doi.org/10.1109/CarpathianCC.2019.8765944
    6. M. Truntic and O. Tezak, “Design and implementation of ESP32-Based IoT devices,” Sensors, vol. 23, no. 15, p. 6739, 2023, doi: 10.3390/s23156739. DOI: https://doi.org/10.3390/s23156739
    7. I. Rinaldi, A. Depari, P. Ferrari, A. Flammini, A. Musatti, and E. Sisinni, “Characterization and performance evaluation of ESP32 for real-time synchronized sensor networks,” Procedia Computer Science, vol. 238, pp. 104–113, 2024, doi: 10.1016/j.procs.2024.05.104. DOI: https://doi.org/10.1016/j.procs.2024.05.104
    8. M. Tansa, “Monitoring kualitas air sungai (kekeruhan, suhu, tds, ph) menggunakan mikrokontroler ATmega328 [Monitoring river water quality (turbidity, temperature, TDS, pH) using an ATmega328 microcontroller],” Jambura Journal of Electrical and Electronics Engineering, vol. 6, no. 1, doi: 10.37905/jjeee.v6i1.23315. DOI: https://doi.org/10.37905/jjeee.v6i1.23315
    9. Y. Irawan, A. Febriani, R. Wahyuni, and Y. Devis, "Monitoring system of water quality on hydroponic planting media using total dissolved solid (TDS) sensor based arduino uno R3," Jurnal Ilmu Fisika, vol. 14, no. 2, pp. 108–115, 2022, doi: 10.25077/jif.14.2.108-115.2022. DOI: https://doi.org/10.25077/jif.14.2.108-115.2022
    10. N. D. Susanti, D. Sagita, I. F. Apriyanto, C. E. W. Anggara, D. A. Darmajana, and A. Rahayuningtyas, "Design and implementation of water quality monitoring system (Temperature, pH, TDS) in aquaculture using IoT at low cost," in Proc. 6th Int. Conf. Food, Agriculture, and Natural Resource (IC-FANRES 2021), Atlantis Press, 2022, pp. 7–11, doi: 10.2991/absr.k.220101.002. DOI: https://doi.org/10.2991/absr.k.220101.002
    11. Y. Adityas et al., "Water quality monitoring system with parameter of pH, temperature, turbidity, and salinity based on internet of things," Jurnal Informatika dan Sains (JISA), vol. 4, no. 2, pp. 138–143, 2021, doi: 10.31326/jisa.v4i2.965. DOI: https://doi.org/10.31326/jisa.v4i2.965
    12. M. N. Nizam, H. Yuana, and Z. Wulansari, “Mikrokontroler ESP32 sebagai alat monitoring pintu berbasis web [ESP32 microcontroller as a web-based door monitoring tool],” JATI (Jurnal Mahasiswa Teknik Informatika), 6(2), 767-772, 2022, doi: 10.36040/jati.v6i2.5713. DOI: https://doi.org/10.36040/jati.v6i2.5713
    13. S. Baco, R. Syarifuddin, S. Sajiah, M. A. Rusli, and M. D. Loilatu, “Rancang bangun alat monitoring ph air layak konsumsi berbasis mikrokontroller arduino uno pada depot air minum adipura 1 [Design and construction of a pH monitoring device for potable water based on an Arduino Uno microcontroller at the Adipura 1 drinking water depot],” Jurnal Teknologi dan Komputer (JTEK), vol. 3, no. 2, pp. 339-345, 2023, doi: 10.56923/jtek.v3i02.147. DOI: https://doi.org/10.56923/jtek.v3i02.147
    14. W. J. Hong, N. Shamsuddin, E. Abas, R. A. Apong, Z. Masri, H. Suhaimi, S. H. Godeke, and M. N. A. Noh, "Water quality monitoring with arduino based sensors," Environments, vol. 8, no. 1, pp. 6, 2021, doi: 10.3390/environments8010006. DOI: https://doi.org/10.3390/environments8010006
    15. J. Junaidi, T. M. Putra, A. Surtono, G. A. Puazi, S. W. Suciyati, I. Firdaus, and L. Rumiyanti, “Measurement of Physical Parameters of Water Quality in Real-Time Based on Arduino,” Journal of Physics: Conference Series, vol. 1751, no. 1, pp. 012067, 2021, doi: 10.1088/1742-6596/1751/1/012067. DOI: https://doi.org/10.1088/1742-6596/1751/1/012067
    16. A. A. Sneineh, and A. A. Shabaneh, “Design of a smart hydroponics monitoring system using an ESP32 microcontroller and the Internet of Things,” MethodsX, vol. 11, pp. 102401, 2023, doi: 10.1016/j.mex.2023.102418. DOI: https://doi.org/10.1016/j.mex.2023.102401
    17. H. Fan, Z. Chen, T, Xu, F. Maloberti, Q. Wei, and Q. Feng, “14-Bit SAR ADC with on-chip digital bubble sorting calibration technology,” Chinese Journal of Electronics, vol. 34, no. 1, pp. 125–136, 2025, doi: 10.23919/cje.2023.00.307. DOI: https://doi.org/10.23919/cje.2023.00.307
    18. M. Grossi, “Efficient and accurate analog voltage measurement using a direct sensor-to-digital port interface for microcontrollers and field-programmable gate arrays,” Sensors, vol. 24, no. 3, pp. 873, 2024, doi: 10.3390/s24031062. DOI: https://doi.org/10.3390/s24030873
    19. W. Jiang, W. Zhao, T. Zhou, L. Wang, and T. Qiu, “A review on manufacturing and post-processing technology of vascular stents,” Micromachines, vol. 13, no. 1, pp. 140, 2022, doi: 10.3390/mi13010140. DOI: https://doi.org/10.3390/mi13010140
    20. A. Saric, K. Dokic, and M. Cobovic, “Performance evaluation of C/C++, MicroPython, Rust and TinyGo programming languages on ESP32 microcontroller,” Electronics, vol. 12, no. 1, pp. 143, 2022, doi: 10.3390/electronics12010143. DOI: https://doi.org/10.3390/electronics12010143
    21. N. A. Cloete, R. Malekian, and L. Nair, "Design of smart sensors for real-time water quality monitoring," IEEE Access, vol. 4, pp. 3975–3990, 2016, doi: 10.1109/ACCESS.2016.2592958. DOI: https://doi.org/10.1109/ACCESS.2016.2592958
    22. L. Rocher, E. Viala, and C. Roux, “Low-Cost Water Quality Sensors for IoT: A Systematic Review,” Sensors, vol. 23, no. 10, pp. 4853, May 2023, doi: 10.3390/s23104853. DOI: https://doi.org/10.3390/s23083913
    23. I. Essamlali, H. Nhaila, and M. El Khaili, “Advances in machine learning and IoT for water quality monitoring: A comprehensive review,” Heliyon, vol. 10, no. 6, p. e27920, Mar. 2024, doi: 10.1016/j.heliyon.2024.e27920. DOI: https://doi.org/10.1016/j.heliyon.2024.e27920
    24. F. Almajed, F. Almajed, and Q. A. Al-Haija, “An IoT-enabled intelligent water quality monitoring system for tourist safety using machine learning,” Discover Electronics, vol. 2, no. 1, 2025, doi: 10.1007/s44291-025-00070-1. DOI: https://doi.org/10.1007/s44291-025-00070-1
    25. A. H. El-Khozondar, E. H. Bayoumi, and A. A. E. A. Halim, “A smart energy monitoring system using ESP32 microcontroller,” e-Prime - Advances in Electrical Engineering, Electronics and Energy, vol. 9, p. 100666, 2024, doi: 10.1016/j.prime.2024.100666. DOI: https://doi.org/10.1016/j.prime.2024.100666
    26. V. K. Tran, B. T. Thai, H. Pham, V. K. Nguyen, and V. K. Nguyen, “A proposed approach to utilizing esp32 microcontroller for data acquisition,” Journal of Engineering and Technological Sciences, vol. 56, no. 4, pp. 474-488, 2024, doi: 10.5614/j.eng.technol.sci.2024.56.4.4. DOI: https://doi.org/10.5614/j.eng.technol.sci.2024.56.4.4
    27. D. Chen, X. Cui, Q. Zhang, D. Li, W. Cheng, C. Fei, and Y. Yang, “A survey on analog-to-digital converter integrated circuits for miniaturized high resolution ultrasonic imaging system,” Micromachines, vol. 13, no. 1, pp. 114, 2022, doi: 10.3390/mi13010114. DOI: https://doi.org/10.3390/mi13010114
    28. M. A. Mohammedali, and Q. Al-Gayem, “An accurate and fast method for improving adc nonlinearity,” Applied Computational Intelligence and Soft Computing, vol. 2023, no.1 , pp. 8899666, 2023, doi: 10.1155/2023/8899666. DOI: https://doi.org/10.1155/2023/8899666
    29. M. Zhao, Y. Yuan, L. Luo, and X. Li, “A review: Absolute linear encoder measurement technology,” Sensors, vol. 25, no. 19, pp. 5997, 2025, doi: 10.3390/s25195997. DOI: https://doi.org/10.3390/s25195997
    30. P. K. Ramanathan, S. Ramasamy, M. Ericsson, and S. PV, “Capacitive sensor interfaces: Signal conditioning techniques a review,” Journal of Sensors, vol. 1015, no. 1, pp. 9146911, 2025, doi: 10.1155/js/9146911. DOI: https://doi.org/10.1155/js/9146911
    31. B. S. Rawat, N. Kumar, D. Ghosal, D. Aflyatunova, B. Rienäcker, and C. P. Welsch, “Faraday cups: Principles, designs, and applications across scientific disciplines a review,” Instruments, vol. 9, no. 3, pp. 20, 2025, doi: 10.3390/instruments9030020. DOI: https://doi.org/10.3390/instruments9030020
    32. P. Yan, “Architectural evolution and performance optimization in embedded systems: A comparative analysis of ESP8266, ESP32-S3, and ESP32-C6 platforms,” International Journal of Advance in Applied Science Research, 4(9), 51-56, 2025.
    33. D. Hercog, T. Lerher, M. Truntič, and O. Težak, “Design and implementation of ESP32-based IoT devices,” Sensors, vol. 23, no. 15, pp. 6739, 2023, doi: 10.3390/s23156739. DOI: https://doi.org/10.3390/s23156739
    34. N. P. Le, N. B. Khanh, L. N. Giap, T. N. T. An, and B. T. Trung, “A comparative analysis of time synchronization techniques for a hybrid multi-rate power monitoring system,” Engineering, Technology & Applied Science Research, vol. 15, no. 6, pp. 29992-29998, 2025, doi: 10.48084/etasr.14702. DOI: https://doi.org/10.48084/etasr.14702
    35. R. Raphael, R. Sarukkalige, S. Narasimhan, and H. Agrawal, “Performance evaluation of chaosfortress lightweight cryptographic algorithm for data security in water and other utility management,” Sensors, vol. 25, no. 16, pp. 5103, 2025, doi: 10.3390/s25165103. DOI: https://doi.org/10.3390/s25165103
    36. G. M. Puentes-Conde, E. Sifuentes, J. Molina, F. Enríquez-Aguilera, G. Bravo, and G. N. Enríquez, “Direct interface circuits for resistive, capacitive, and inductive sensors: A review,” Electronics, vol. 14, no. 12, pp. 2393, 2025, doi: 10.3390/electronics14122393. DOI: https://doi.org/10.3390/electronics14122393
    37. M. S. Bakare, and K. Abubaker, “IoT-based indoor environmental monitoring system using multi-parameter sensing and ESP32-WROOM integration,” Discover Electronics, vol. 3, no. 1, pp. 6, 2026, doi: 10.1007/s44291-026-00157-3. DOI: https://doi.org/10.1007/s44291-026-00157-3
    38. F. D. Makatita, and N. F. A. Hakim, “MQTT protocol-based ESP-32 smarthome with multi-sensor recognition,” Journal of Electrical, Electronic, Information, and Communication Technology, vol. 6, no. 1, pp. 29-36, 2024, doi: 10.1007/s44291-026-00157-3. DOI: https://doi.org/10.20961/jeeict.6.1.84007
    39. M. Sousa, A. Alves, R. Antunes, M. Aguiar, P. D. Gaspar, and N. Pereira, “Interoperable IoT/WSN sensing station with edge ai-enabled multi-sensor integration for precision agriculture,” Agriculture, vol. 16, no. 1, pp. 69, 2025, doi: 10.3390/agriculture16010069. DOI: https://doi.org/10.3390/agriculture16010069
    40. F. Serepas, I. Papias, K. Christakis, N. Dimitropoulos, and V. Marinakis, “Lightweight embedded IoT gateway for smart homes based on an ESP32 microcontroller,” Computers, vol. 14, no. 9, pp. 391, 2025, doi: 10.3390/computers14090391. DOI: https://doi.org/10.3390/computers14090391
    41. V. Sámano-Ortega, O. Arzate-Rivas, J. Martínez-Nolasco, J. Aguilera-Álvarez, C. Martínez-Nolasco, and M. Santoyo-Mora, “Multipurpose modular wireless sensor for remote monitoring and IoT applications,” Sensors, vol. 24, no. 4, pp. 1277, 2024, doi: 10.3390/s24041277. DOI: https://doi.org/10.3390/s24041277

Categories