

A TDs (Total Dissolved Solids) sensor measures the concentration of dissolved solids in a liquid, typically expressed in parts per million (ppm). It is widely used in water quality monitoring and treatment applications to assess the purity of water. This sensor is essential in industries such as agriculture, aquaculture, hydroponics, and environmental monitoring, where maintaining water quality is critical.
Common applications include:








Below are the key technical details of a typical TDs sensor:
| Parameter | Value |
|---|---|
| Operating Voltage | 3.3V - 5V |
| Output Signal | Analog voltage (0-2.3V typical) |
| Measurement Range | 0 - 1000 ppm |
| Accuracy | ±10% (varies by sensor model) |
| Operating Temperature | 0°C - 60°C |
| Probe Material | Stainless steel |
| Cable Length | ~1 meter |
The TDs sensor module typically has the following pin configuration:
| Pin Name | Description |
|---|---|
| VCC | Power supply input (3.3V - 5V) |
| GND | Ground connection |
| AOUT | Analog output signal (proportional to TDs) |
Connect the Sensor to a Microcontroller:
VCC pin of the sensor module to the 5V (or 3.3V) pin of your microcontroller.GND pin to the ground (GND) of your microcontroller.AOUT pin to an analog input pin (e.g., A0) on your microcontroller.Calibrate the Sensor:
Place the Probe in the Liquid:
Read the Analog Signal:
Below is an example of how to use a TDs sensor with an Arduino UNO:
// Include necessary libraries
const int tdsPin = A0; // Analog pin connected to the TDs sensor
float voltage; // Variable to store the sensor's output voltage
float tdsValue; // Variable to store the calculated TDs value
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
pinMode(tdsPin, INPUT); // Set the TDs pin as input
}
void loop() {
int sensorValue = analogRead(tdsPin); // Read the analog value from the sensor
voltage = sensorValue * (5.0 / 1023.0); // Convert ADC value to voltage
tdsValue = (voltage * 1000) / 2.3; // Convert voltage to TDs (ppm)
// Print the TDs value to the Serial Monitor
Serial.print("TDs Value: ");
Serial.print(tdsValue);
Serial.println(" ppm");
delay(1000); // Wait for 1 second before the next reading
}
Note: The formula for converting voltage to TDs value may vary depending on the specific sensor model. Refer to the sensor's datasheet for accurate calculations.
Inaccurate Readings:
No Output Signal:
Fluctuating Readings:
Sensor Not Responding:
Q: Can the TDs sensor measure salinity?
A: While the TDs sensor is not specifically designed for salinity measurement, it can provide an approximate indication of salinity since dissolved salts contribute to the TDs value.
Q: How often should I calibrate the sensor?
A: Calibration frequency depends on usage. For critical applications, calibrate before each use. For general use, calibrate monthly or as needed.
Q: Can I use the TDs sensor in hot liquids?
A: No, the sensor is designed for use in liquids with temperatures between 0°C and 60°C. Exceeding this range may damage the probe.
Q: Is the TDs sensor suitable for measuring drinking water?
A: Yes, the TDs sensor is commonly used to monitor drinking water quality. However, ensure the sensor is properly calibrated for accurate results.