
IoT
IoT-Based TDS Water Quality Monitoring System
Abstract:
The IoT-Based TDS Water Quality Monitoring System is designed to measure the Total Dissolved Solids (TDS) level in water using a TDS sensor, ESP32, and OLED display. The system processes sensor readings to estimate TDS concentration in parts per million (ppm), displays the result locally, and can transmit measurements through Wi-Fi for remote monitoring. It supports water-quality trend analysis, data logging, and configurable alerts when TDS readings exceed predefined limits.
Project Description:
This project develops an IoT-enabled water-quality monitoring solution using an ESP32 development board, TDS sensor module, and OLED display.
The TDS probe measures the electrical conductivity of a water sample. The sensor module converts the measurement into an analog voltage that can be read by the ESP32. The controller processes the readings using a calibration procedure and estimates the TDS value in ppm.
The estimated TDS reading is displayed on the OLED screen. Through Wi-Fi connectivity, the ESP32 can also send the measurements to a cloud platform or web dashboard, allowing users to monitor water-quality trends, review historical readings, and receive alerts when configured limits are exceeded.
Working Principle:
1. Water Sampling: Place the TDS probe in the water sample according to the sensor manufacturer's instructions.
2. Conductivity Measurement: The TDS sensor measures the electrical conductivity of the water.
3. Data Acquisition: The sensor module provides an analog output that the ESP32 reads through its ADC input.
4. Calibration and Processing: The ESP32 processes the analog reading and estimates the TDS concentration using the sensor's calibration formula.
5. Local Display: The estimated TDS value in ppm is displayed on the OLED screen.
6. IoT Communication: The ESP32 sends TDS measurements through Wi-Fi to a compatible cloud platform or web application.
7. Data Logging: Historical readings can be stored for water-quality trend analysis.
8. Alert Generation: Notifications can be generated when the TDS reading exceeds configured thresholds.
Notes:
- Select a TDS sensor module compatible with the ESP32 analog input voltage range.
- TDS measurement is generally estimated from electrical conductivity; it does not directly identify individual dissolved substances.
- Use a suitable calibration solution and follow the sensor manufacturer's calibration procedure.
- Water temperature affects conductivity, so temperature compensation should be considered for more reliable measurements.
- A DS18B20 or another suitable temperature sensor can be added as an optional extension.
- Sensor readings can vary with probe cleanliness, water composition, calibration, and measurement conditions.
- The OLED can use an I2C interface, such as a compatible 0.96-inch or 1.3-inch display.
- Cloud connectivity is optional; the basic prototype can operate with local OLED monitoring.
- TDS readings alone cannot establish whether water is safe to drink. Microbial contamination, harmful chemicals, and other water-quality parameters require separate testing.
Expected Outcome:
The expected outcome is a functional IoT-based water-quality monitoring prototype that estimates TDS concentration, processes readings through an ESP32, and displays the results on an OLED screen. With Wi-Fi connectivity, the system can also support remote monitoring, historical data logging, water-quality trend analysis, and configurable alerts. It demonstrates a practical approach to dissolved-solids monitoring for educational projects, aquariums, hydroponics, water treatment, and general water-quality observation.
All Projects




