

The DFRobot EC Sensor is a high-precision sensor designed to measure the electrical conductivity (EC) of a solution. Electrical conductivity is a key parameter in determining the concentration of ions in water, making this sensor an essential tool for applications such as water quality monitoring, hydroponics, aquaculture, and environmental research. By providing accurate and reliable measurements, the DFRobot EC Sensor helps users maintain optimal water conditions for various applications.








The DFRobot EC Sensor module has a 3-pin interface for connecting to a microcontroller. Below is the pin configuration:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply input (3.3V–5.5V) |
| 2 | GND | Ground connection |
| 3 | AOUT | Analog output signal proportional to EC value |
Connect the Sensor:
Calibrate the Sensor:
Temperature Compensation:
Read the Analog Signal:
Below is an example code snippet to interface the DFRobot EC Sensor with an Arduino UNO:
// Include necessary libraries
const int EC_PIN = A0; // Analog pin connected to the sensor's AOUT pin
float voltage; // Variable to store the sensor's output voltage
float ecValue; // Variable to store the calculated EC value
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
pinMode(EC_PIN, INPUT); // Set the EC_PIN as an input
}
void loop() {
// Read the analog voltage from the sensor
int sensorValue = analogRead(EC_PIN);
// Convert the analog value to voltage (assuming 5V reference)
voltage = sensorValue * (5.0 / 1023.0);
// Calculate the EC value (example formula, adjust based on calibration)
ecValue = voltage * 1000; // Convert voltage to EC in µS/cm
// Print the EC value to the Serial Monitor
Serial.print("EC Value: ");
Serial.print(ecValue);
Serial.println(" µS/cm");
delay(1000); // Wait for 1 second before the next reading
}
No Output or Incorrect Readings:
Fluctuating Readings:
Inaccurate Measurements:
Probe Corrosion:
Q1: Can the DFRobot EC Sensor be used in seawater?
A1: Yes, the sensor can measure the EC of seawater, but ensure it is calibrated for high EC ranges.
Q2: How often should I calibrate the sensor?
A2: It is recommended to calibrate the sensor before each use or at least once a week for consistent accuracy.
Q3: Can I use the sensor without temperature compensation?
A3: Yes, but the readings may not be accurate if the solution's temperature deviates significantly from the calibration temperature.
Q4: What is the lifespan of the probe?
A4: The probe's lifespan depends on usage and maintenance. With proper care, it can last for several years.
By following this documentation, users can effectively integrate and utilize the DFRobot EC Sensor in their projects for accurate and reliable EC measurements.