

A TDS (Total Dissolved Solids) sensor measures the concentration of dissolved solids in a liquid, typically expressed in parts per million (ppm). These dissolved solids include minerals, salts, and organic compounds. TDS sensors are widely used in water quality monitoring, aquariums, hydroponics, and water purification systems to ensure the liquid meets specific quality standards.








| Parameter | Value/Description |
|---|---|
| Operating Voltage | 3.3V - 5.0V |
| Operating Current | 3-6 mA |
| Measurement Range | 0 - 1000 ppm (standard) |
| Accuracy | ±10% of the reading |
| Output Signal | Analog voltage (0-2.3V typical) |
| Temperature Range | 0°C - 60°C |
| Probe Material | Stainless steel |
| Cable Length | Typically 1 meter |
| Pin Name | Description |
|---|---|
| VCC | Power supply input (3.3V - 5.0V) |
| GND | Ground connection |
| AOUT | Analog output signal proportional to TDS value |
VCC pin of the TDS sensor to a 3.3V or 5.0V power source.GND pin to the ground of your circuit.AOUT pin to an analog input pin on your microcontroller (e.g., Arduino).Below is an example of how to connect the TDS sensor to an Arduino UNO:
VCC → 5V pin on ArduinoGND → GND pin on ArduinoAOUT → A0 pin on Arduino// TDS Sensor Example Code
// This code reads the analog signal from the TDS sensor and converts it to ppm.
// Ensure the sensor is properly calibrated for accurate readings.
#define TDS_PIN A0 // Analog pin connected to the TDS sensor
#define VREF 5.0 // Reference voltage of the Arduino (5V for most boards)
#define ADC_RES 1024 // ADC resolution (10-bit for Arduino UNO)
void setup() {
Serial.begin(9600); // Initialize serial communication
pinMode(TDS_PIN, INPUT); // Set TDS pin as input
}
void loop() {
int analogValue = analogRead(TDS_PIN); // Read analog value from sensor
float voltage = (analogValue / float(ADC_RES)) * VREF; // Convert to voltage
float tdsValue = (voltage / 2.3) * 1000; // 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 1 second before the next reading
}
Inaccurate Readings
No Output Signal
Fluctuating Readings
Sensor Not Responding
Q: Can the TDS sensor measure salinity?
A: While TDS sensors can provide an indirect measurement of salinity, they are not specifically designed for this purpose. Use a dedicated salinity sensor for precise measurements.
Q: How often should I calibrate the TDS 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: The sensor is rated for temperatures up to 60°C. Avoid using it in liquids exceeding this temperature to prevent damage.
Q: Is the TDS sensor waterproof?
A: The probe is waterproof, but the main sensor module is not. Ensure the module remains dry during operation.