

The DO Sensor, manufactured by DF Robot (Part ID: DO SENSOR), is a versatile sensor designed to detect and measure specific physical properties or environmental conditions. It is commonly used in automation and control systems to provide real-time feedback for decision-making processes. This sensor is particularly useful in applications requiring precise monitoring of dissolved oxygen levels in liquids, making it ideal for water quality testing, aquaculture, and environmental monitoring.








The DO Sensor is engineered for reliability and accuracy in a variety of environments. Below are its key technical details:
| Parameter | Specification |
|---|---|
| Operating Voltage | 3.3V - 5.0V |
| Output Signal | Analog voltage (0-3.0V) |
| Measurement Range | 0 - 20 mg/L (ppm) |
| Accuracy | ±0.1 mg/L |
| Response Time | < 60 seconds |
| Operating Temperature | 0°C to 50°C |
| Storage Temperature | -10°C to 60°C |
| Waterproof Probe | Yes |
| Cable Length | 2 meters |
The DO Sensor module has a simple pinout for easy integration with microcontrollers. Below is the pin configuration:
| Pin Name | Description |
|---|---|
| VCC | Power supply input (3.3V - 5.0V) |
| GND | Ground |
| AOUT | Analog output signal |
The DO Sensor is straightforward to use and can be easily integrated into a circuit. Follow the steps below to get started:
VCC pin to a 3.3V or 5.0V power source and the GND pin to the ground of your circuit.AOUT pin to an analog input pin on your microcontroller (e.g., Arduino UNO).Below is an example of how to connect the DO Sensor to an Arduino UNO:
| DO Sensor Pin | Arduino UNO Pin |
|---|---|
| VCC | 5V |
| GND | GND |
| AOUT | A0 |
The following Arduino code demonstrates how to read data from the DO Sensor and display it on the Serial Monitor:
// Define the analog pin connected to the DO Sensor
const int DO_SENSOR_PIN = A0;
void setup() {
// Initialize the Serial Monitor for debugging
Serial.begin(9600);
}
void loop() {
// Read the analog value from the DO Sensor
int sensorValue = analogRead(DO_SENSOR_PIN);
// Convert the analog value to voltage (assuming 5V reference)
float voltage = sensorValue * (5.0 / 1023.0);
// Convert the voltage to dissolved oxygen concentration (mg/L)
// Note: Replace the formula below with the calibration equation
float doConcentration = voltage * 6.67; // Example conversion factor
// Print the results to the Serial Monitor
Serial.print("Voltage: ");
Serial.print(voltage);
Serial.print(" V, DO Concentration: ");
Serial.print(doConcentration);
Serial.println(" mg/L");
// Wait for 1 second before the next reading
delay(1000);
}
Inaccurate Readings
No Output Signal
VCC, GND, and AOUT pins are properly connected to the microcontroller.Fluctuating Readings
VCC and GND to stabilize the power supply.Slow Response Time
Q: Can the DO Sensor be used underwater for extended periods?
A: Yes, the waterproof probe is designed for underwater use. However, ensure proper maintenance to prevent fouling.
Q: How do I calibrate the DO Sensor?
A: Immerse the probe in a standard solution with a known dissolved oxygen concentration and adjust the readings using the calibration formula provided by the manufacturer.
Q: Can I use the DO Sensor with a 3.3V microcontroller?
A: Yes, the sensor operates within a voltage range of 3.3V to 5.0V, making it compatible with 3.3V microcontrollers like the ESP32.
Q: Does the sensor include temperature compensation?
A: No, the sensor does not have built-in temperature compensation. For accurate results, use an external temperature sensor to adjust the readings.
By following this documentation, you can effectively integrate and use the DF Robot DO Sensor in your projects.