A fish pond water quality monitor is essential for successful aquaculture in India, where inland fisheries contribute over ₹1.75 lakh crore annually to the economy. Whether you are farming Rohu and Catla in West Bengal, Tilapia in Andhra Pradesh, or shrimp in coastal Tamil Nadu, automated monitoring of pH, dissolved oxygen, and temperature prevents fish kills and optimises growth rates. This guide covers building a complete water quality monitoring system with Arduino.
Table of Contents
- Why Water Quality Monitoring is Critical
- Key Parameters to Monitor
- Sensor Selection and Interfacing
- Building the Monitor with Arduino
- Automatic Aerator Control
- Alerts and Data Logging
- Frequently Asked Questions
- Conclusion
Why Water Quality Monitoring is Critical
Fish are entirely dependent on water quality for survival. Unlike land animals that can move to better conditions, pond fish have no escape from deteriorating water. A sudden drop in dissolved oxygen (common during hot nights in Indian summers) can kill an entire pond of fish within hours. Key risks include:
- Dissolved oxygen crash: Below 3 mg/L causes fish stress; below 1 mg/L is lethal. Most common between 3-6 AM
- pH swings: Algal blooms raise pH above 9.5 during the day, toxic to most Indian fish species
- Ammonia toxicity: Overfeeding or overcrowding raises NH3 levels, which is more toxic at higher pH
- Temperature stress: Indian major carps are comfortable at 25-32°C; above 35°C, they stop feeding
Key Parameters to Monitor
| Parameter | Ideal Range (Indian Carps) | Critical Level | Sensor |
|---|---|---|---|
| Temperature | 25-32°C | >35°C or <20°C | DS18B20 |
| pH | 7.0-8.5 | <6.5 or >9.5 | Analogue pH Sensor |
| Dissolved Oxygen | 5-8 mg/L | <3 mg/L | DO Probe |
| Turbidity | 25-40 cm (Secchi) | <15 cm | Turbidity Sensor |
| Water Level | Pond specific | Below inlet | Ultrasonic HC-SR04 |
Sensor Selection and Interfacing
The pH sensor uses an analogue output (0-5V corresponding to pH 0-14) connected to the Arduino’s ADC. The DFRobot Gravity pH sensor kit includes the probe, signal conditioning board, and BNC connector. Calibrate with pH 4.0 and pH 7.0 buffer solutions before deployment.
For dissolved oxygen, the Gravity Analog DO sensor provides a voltage proportional to O2 concentration. Temperature compensation is critical: always read the DS18B20 first and apply the compensation formula provided in the sensor’s library.
Building the Monitor with Arduino
#include <OneWire.h>
#include <DallasTemperature.h>
#include <LiquidCrystal_I2C.h>
#define PH_PIN A0
#define DO_PIN A1
#define TURB_PIN A2
#define TEMP_PIN 3
#define AERATOR_RELAY 7
#define ALARM_BUZZER 8
OneWire oneWire(TEMP_PIN);
DallasTemperature tempSensor(&oneWire);
LiquidCrystal_I2C lcd(0x27, 20, 4);
float readPH() {
int raw = analogRead(PH_PIN);
float voltage = raw * 5.0 / 1024.0;
// Calibration: pH = -5.7 * voltage + 21.34 (adjust to your probe)
return -5.7 * voltage + 21.34;
}
float readDO(float waterTemp) {
int raw = analogRead(DO_PIN);
float voltage = raw * 5.0 / 1024.0;
// Temperature-compensated DO calculation
float DO_mgL = voltage * 10.0; // Simplified, use sensor library for accuracy
return DO_mgL;
}
void setup() {
Serial.begin(9600);
lcd.init(); lcd.backlight();
tempSensor.begin();
pinMode(AERATOR_RELAY, OUTPUT);
pinMode(ALARM_BUZZER, OUTPUT);
digitalWrite(AERATOR_RELAY, HIGH); // Relay off
}
void loop() {
tempSensor.requestTemperatures();
float waterTemp = tempSensor.getTempCByIndex(0);
float pH = readPH();
float DO = readDO(waterTemp);
// Display on LCD
lcd.setCursor(0, 0);
lcd.print("Temp: " + String(waterTemp, 1) + " C");
lcd.setCursor(0, 1);
lcd.print("pH: " + String(pH, 1) + " DO: " + String(DO, 1));
// Automatic aerator control
if (DO 6.0) {
digitalWrite(AERATOR_RELAY, HIGH); // Turn off aerator
}
// Critical alarm
if (DO < 2.0 || pH 10.0 || waterTemp > 36.0) {
tone(ALARM_BUZZER, 2000, 500);
}
delay(30000); // Read every 30 seconds
}
Automatic Aerator Control
The aerator is the single most important piece of equipment in Indian fish ponds. A 1 HP paddle wheel aerator draws about 750W and costs ₹4-5 per hour to run on Indian electricity rates. Automatic DO-based control reduces electricity consumption by 30-40% compared to running the aerator on a fixed timer while ensuring fish never experience oxygen stress.
Use a heavy-duty relay or contactor rated for the aerator’s motor current. A 1 HP motor draws 4-5 amps at 230V AC, so a 10A relay provides adequate margin. Always use a contactor with an RC snubber for inductive motor loads.
Alerts and Data Logging
Log all parameters to an SD card every 5 minutes. This data is invaluable for diagnosing problems after a fish mortality event. Add a SIM800L module for SMS alerts when critical thresholds are breached. Send alerts to the farm owner’s mobile for:
- DO below 3 mg/L — immediate response required
- pH above 9.0 or below 6.5 — check for algal bloom or acid runoff
- Temperature above 34°C — reduce feeding, increase aeration
- Aerator relay failure — manual intervention needed
Frequently Asked Questions
How often should I calibrate the pH sensor?
Calibrate every 2 weeks with pH 4.0 and 7.0 buffer solutions. In hard water areas (common in Gujarat and Rajasthan), probe fouling is faster, so inspect and clean weekly. Replace the pH probe every 12-18 months.
Can this system work for shrimp ponds?
Yes, with adjusted thresholds. Shrimp (Vannamei) require higher DO (above 4 mg/L), salinity monitoring (add a TDS sensor), and tighter pH control (7.5-8.5). Add a salinity/conductivity sensor for brackish water ponds.
What is the total cost of this monitoring system?
The core monitoring unit costs ₹5,000-7,000 (Arduino, pH sensor, DO sensor, temperature probe, LCD, relay). The pH and DO probes are the most expensive components. Budget ₹2,000/year for probe replacements.
How do I protect the electronics from moisture near the pond?
Mount all electronics in an IP67 enclosure on a pole 1 metre above water level. Only sensor probes enter the water. Use cable glands for all wire entry points and include silica gel desiccant inside the enclosure.
Conclusion
Automated water quality monitoring is the single most impactful investment for Indian aquaculture operations. Preventing even one fish kill event justifies the entire system cost many times over. Build your monitoring system with quality components from Zbotic and ensure your fish ponds maintain optimal conditions around the clock.
Add comment