

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. The sensor works by measuring the electrical conductivity of the liquid, which correlates to the concentration of dissolved ions.








Below are the key technical details for a typical TDs sensor module:
| Parameter | Value |
|---|---|
| Operating Voltage | 3.3V - 5V |
| Operating Current | 10mA |
| Measurement Range | 0 - 1000 ppm |
| Accuracy | ±10 ppm |
| Output Signal | Analog voltage (0 - 2.3V typical) |
| Temperature Compensation | Yes (via external temperature sensor) |
| Operating Temperature | 0°C - 60°C |
| Pin Name | Description |
|---|---|
| VCC | Power supply input (3.3V - 5V) |
| GND | Ground connection |
| AOUT | Analog output signal (proportional to TDs) |
| TEMP | Optional input for external temperature sensor |
Below is an example of how to use a TDs sensor with an Arduino UNO:
// Include necessary libraries
const int TDS_PIN = A0; // Analog pin connected to the TDs sensor
float voltage, tdsValue;
void setup() {
Serial.begin(9600); // Initialize serial communication
pinMode(TDS_PIN, INPUT); // Set the TDs pin as input
}
void loop() {
int sensorValue = analogRead(TDS_PIN); // Read analog value from sensor
voltage = sensorValue * (5.0 / 1023.0); // Convert to voltage (5V reference)
// Calculate TDs value in ppm
tdsValue = (voltage / 5.0) * 1000; // Adjust based on sensor calibration
// Print the TDs value to the Serial Monitor
Serial.print("TDs Value: ");
Serial.print(tdsValue);
Serial.println(" ppm");
delay(1000); // Wait 1 second before next reading
}
Inaccurate Readings
No Output Signal
Fluctuating Readings
Temperature Compensation Not Working
Q: Can the TDs sensor measure salinity?
A: While the TDs sensor is not specifically designed for salinity, it can provide an approximate measurement since salinity contributes to dissolved solids.
Q: How often should I calibrate the sensor?
A: Calibration frequency depends on usage, but it is recommended to calibrate monthly or whenever accuracy is critical.
Q: Can I use the TDs sensor in hot liquids?
A: No, the sensor is designed for liquids within the operating temperature range of 0°C to 60°C.
Q: Is the TDs sensor waterproof?
A: Only the probe is waterproof. The main module should be kept dry and away from liquids.