Arduino-Based Automatic Water Salinity Control System Using A Gravity TDS Sensor
DOI:
https://doi.org/10.26877/lpt.v5i1.352Keywords:
Arduino, automatic control system, gravity tds sensor, linear regression, water salinityAbstract
Water salinity is one of the water quality parameters that plays an important role in maintainng aquatic enviromental conditions. Instability in salinity levels can degrade water quality. Therefore, an automatic and continuous control system is required. This study aims to design and implement an Arduino-based automatic water salinity control system using a Gravity Total Dissolved Solid (TDS) sensor. The research methods include hardware and software design, sensor calibration, and system testing by comparing sensor measurements with reference values at several salinity variations expressed in ppm units. The preliminary data were analyzed using linear regression to determine the relationship between sensor reading and the reference values, as well as Root Mean Square Error (RMSE) and Mean Absolute Error (MAE) to evaluate system accuracy. The test result show that the system was able to consistently track change in salinity, with stable readings at a 20% increase corresponding to 614.4 ppm and a 40% decrease corresponding to 296.0 ppm. These findings indicate that the Arduino-based automatic system combined with the Gravity TDS sensor has strong potential to be applied as an efficient solution for monitoring and controlling water salinity.
Downloads
References
Abd, A. El, & Mohamed, G. A. (2023). A neutron Scattering Method for Monitoring Water Salinity during Desalination Processes. Journal of Radiation and Nuclear Applications, 8(2), 145–150. https://doi.org/10.18576/jrna/080207
Bella, A., Putri, D. R. P. ., & Mandang, I. (2021). Rancang Bangun Sistem Monitoring Suhu dan Salinias pada Air Laut. Progressive Physics Journal, 2(1), 37–48. https://doi.org/10.30872/ppj.v2i1.767
Burhanudin, M. D., Widayaka, P. D., & Tjahyaningtijas, R. R. H. P. A. (2024). Design And Development of a Pond Water Quality Monitoring Device Using the GSM SIM-800L Module. Indonesian Journal of Electrical and Electronics Engineering (INAJEEE), 7(2), 44–49. https://doi.org/https://doi.org/10.26740/inajeee.v7n2
Chidinma, M. M. (2024). Bacteriological evaluation of fish pond waste water from different fish ponds in Owerri Imo State , Nigeria. World News of Natural Sciences, 53, 223–230. URL: https://psjd.icm.edu.pl/psjd/element/bwmeta1.element.psjd-533429ac-ed7f-42eb-ba45-5b10665d91b2
Chuzaini, F., & Dzulkiflih. (2022). IoT Monitoring Kualitas Air dengan Menggunakan Sensor Suhu , pH , dan Total Dissolved Solids ( TDS ). Jurnal Inovasi Fisika Indonesia (IFI), 11(3), 46–56. URL; https://ejournal.unesa.ac.id/index.php/inovasi-fisika-indonesia/article/view/48240
Gómez-Astorga, M. J., Villagra-Mendoza, K., Masís-Meléndez, F., Ruíz-Barquero, A., & Rimolo-Donadio, R. (2024). Calibration of Low-Cost Moisture Sensors in a Biochar-Amended Sandy Loam Soil with Different Salinity Levels. Sensors, 24(18), 1–18. https://doi.org/10.3390/s24185958
Hakimi, A. R., Rivai, M., & Pirngadi, H. (2021). Sistem Kontrol dan Monitor Kadar Salinitas Air Tambak Berbasis IoT LoRa. Jurnal Teknik ITS, 10(1), A9–A14. https://doi.org/10.12962/j23373539.v10i1.59612
Handika, M. F., & Irawan, D. (2024). Rancang Bangun Alat Pengujian Air Pada Damiu Berbasis Iot Menggunakan Metode SAW. Jurnal Teknika, 18(2), 661–671. https://doi.org/10.5281/zenodo.13159003
Haryono. (2021). Pengaruh Penambahan Resin Saset Dalam Perebusan Air Sadah Terhadap TDS (1st ed.). Poltekkes Jogja Press. URL: https://eprints.poltekkesjogja.ac.id/8165/
Hodson, T. O. (2022). Root-mean-square error (RMSE) or mean absolute error (MAE): when to use them or not. Geoscientific Model Development, 15(14), 5481–5487. https://doi.org/10.5194/gmd-15-5481-2022
Ikhwan, S., Marindani, E. D., & Jati, D. R. (2023). Design and Bevelopment of River Water Quality Monitoring and Salinity Development Properly Realtime Based IoT. Telecommunications, Computers, and Electricals Engineering Journal (TELECTRICAL), 1(2), 136–149. https://doi.org/10.26418/telectrical.v1i2.70662
Irawan, Y., Febriani, A., Wahyuni, R., & Devis, Y. (2021). Water Quality Measurement and Filtering Tools Using Arduino Uno , PH Sensor and TDS Meter Sensor. Journal of Robotics and Control (JRC), 2(5). https://doi.org/10.18196/jrc.25107
Jáquez, A. D. B., Herrera, M. T. A., Celestino, A. E. M., Ramírez, E. N., & Cruz, D. A. M. (2023). Extension of LoRa Coverage and Integration of an Unsupervised Anomaly Detection Algorithm in an IoT Water Quality Monitoring System. Water (Switzerland) MDPI, 15(7), 1–17. https://doi.org/10.3390/w15071351
Matysik, M., Absalon, D., Janczewska, N., & Woźnica, A. (2025). Detection of changes in water salinity based on patrol monitoring and remote sensing methods. Desalination and Water Treatment, 321, 1–11. https://doi.org/10.1016/j.dwt.2024.100930
Misiurek, K., Olkusi, T., & Zyk, J. (2025). Review of Methods and Models for Forecasting Electricity Consumption. Review of Methods and Models for Forecasting Electricity Load (Energies), 18(15), 1–27. https://doi.org/10.3390/agriculture15040367
Mustofa, A. (2020). Pengelolaan Kualitas Air untuk Akuakultur (N. Kursistiyanto, P. A. Wibowo, R. Rizqi, & G. M. S. W. D. Pratama (eds.); 1st ed.). UNISNU Press. https://www.google.co.id/books/edition/Pengelolaan_Kualitas_Air_untuk_Akuakultu/uEgIEAAAQBAJ?hl=id&gbpv=1&dq=karakteristik+air+tambak&printsec=frontcover
Navarrete, M. C., Díaz-Herrera, N., & González-Cano, A. (2024). Salinity Measurement with a Plasmonic Sensor Based on Doubly Deposited Tapered Optical Fibers. Sensors, 24(15), 1–18. https://doi.org/10.3390/s24154957
Parra, L., Tudela, S. V., Carrasco, D., Sendra, S., & Lloret, J. (2023). Low-Cost Microcontroller-Based Multiparametric Probe for Coastal Area Monitoring. Sensors, 23(4), 1–19. https://doi.org/10.3390/s23041871
Purba, N. P., Faizal, I., Valino, D. A., Kang, H. S., Sugianto, E., Martasuganda, M. K., Abimanyu, A., Bratasena, T., Zenyda, K. S., Prayogo, N., Ramdhani, F., & Khan, A. M. A. (2023). Development of autonomous multi-sensor ocean monitoring instrument designed for complex archipelagic waters. International Journal of Environmental Science and Technology, 20(10), 1–10. https://doi.org/10.1007/s13762-023-04772-5
Ramadhan, H. P., Kartiko, C., & Prasetiadi, A. (2020). Monitoring Kualitas Air Tambak Udang Menggunakan Metode Data Logging. Jurnal Teknik Informatika Dan Sistem Informasi, 6(1), 102–114. https://doi.org/10.28932/jutisi.v6i1.2365
Saraswati, I., Himawan, G., Wiryadinata, R., Ramadhani, A., Haryanto, H., Franata, N., Yudono, M. A. S., & Erlindriyani, R. V. (2025). Prototype system for turbidity and TDS measurement of refill drinking water using Arduino microcontroller. Teknika: Jurnal Sains Dan Teknologi, 21(01). https://doi.org/10.62870/tjst.v21i1.30486
Sharma, S., & Bhatt, R. (2023). Monitoring Water and Soil Salinity across Mentor Marsh to Investigate Their Temporal and Spatial Variability. Water (Switzerland), 15(23), 1–17. https://doi.org/10.3390/w15234172
Suminten, N., Arjo, S., Roza, L., & Fitriana, A. (2021). Perbandingan Konsentrasi Larutan Garam dan Air Kelapa Terhadap Nilai Konduktivitas Listrik. JPF (Jurnal Pendidikan Fisika) FKIP UM Metro, 9(2), 164–171. https://doi.org/10.24127/jpf.v9i2.4067
Toruan, F. L., & Galina, M. (2023). Internet of Things- Based Automatic Feeder and Monitoring of Water Temperature, PH, and Salinity for Litopenaeus Vannamei Shrimp. Jurnal Teknik Elektro, Teknologi Informasi Dan Komputer (ELTIKOM), 7(1), 9–20. https://doi.org/10.31961/eltikom.v7i1.658
Widharma, I. G. S., & Wiranata, L. F. (2022). Mikrokontroler Dan Aplikasi (N. Wahid (ed.); Pertama). Wawasan Ilmu. URL: https://www.google.co.id/books/edition/Mikrokontroler_dan_Aplikasi/AsKAEAAAQBAJ?hl=id&gbpv=1&dq=arduino+uno&pg=PA65&printsec=frontcover
Yunarty, Kurniaji, A., Budiyati, Renitasari, D. P., & Resa, M. (2022). Karakteristik Kualitas Air dan Performa Pertumbuhan Udang Vaname (Litopenaeus vannamei) Pola Intensif. Pena Akuatika : Jurnal Ilmiah Perikanan Dan Kelautan, 21(1), 75–88. https://doi.org/10.31941/penaakuatika.v21i1.1871
Downloads
Published
Data Availability Statement
There is currently no publicly available repository for the data generated in this study. However, selected datasets and supporting materials relevant to the finding are available from the corresponding author upon reasonable request, subject to institutional policies.
Issue
Section
License
Copyright (c) 2026 Widya Maharani Putri, Syahrir, Kholis Nurhanafi, Devina Rayzy Perwitasari Sutaji Putri, Ahmad Zarkasi, Auliya Rahmatul Ummah (Author)

This work is licensed under a Creative Commons Attribution 4.0 International License.
This journal publishes articles under the Creative Commons Attribution 4.0 International License (CC BY 4.0).