Zbotic Logo Zbotic Logo
  • Home
  • Shop
  • Sale
  • 3D Print Service
  • PCB Service
  • B2B
  • Blogs
  • Contact Us
0 0

View Wishlist Add all to cart

0 0
0 Shopping Cart
Shopping cart (0)
Subtotal: ₹0.00

View cartCheckout

  • Shop
  • About Us
  • Contact Us
  • Reseller
  • Blogs
020 69134444
1800 209 0998
[email protected]
Help Desk
Facebook Twitter Instagram Linkedin YouTube
Zbotic Logo Zbotic Logo
0 0

View Wishlist Add all to cart

0 0
0 Shopping Cart
Shopping cart (0)
Subtotal: ₹0.00

View cartCheckout

All departments
  • 3D Print Service
  • 3D Printer
  • Batteries & Chargers
  • Development Boards
  • Drone Parts
  • EBike parts
  • Sensor Modules
  • Electronic Components
  • Electronic Modules
  • IoT and Wireless
  • Mechanical Parts and Workbench Tools
  • Motors & Drivers & Pumps & Actuators
  • DIY and Robot Kits
  • Show more
  • Home
  • Shop
  • Sale
  • 3D Print Service
  • PCB Service
  • B2B
  • Blogs
  • Contact Us
Return to previous page
Home Agriculture & Smart Farming

Aquaponics Automation: Fish Tank and Plant Bed Monitoring

Aquaponics Automation: Fish Tank and Plant Bed Monitoring

March 11, 2026 /Posted byJayesh Jain / 0

Aquaponics automation combines fish tank and plant bed monitoring into an integrated system that maintains optimal conditions for both aquatic life and plant growth. Aquaponics — the symbiotic cultivation of fish and plants — is growing rapidly in India as an efficient food production method using 90% less water than conventional farming. This guide covers building a complete automated aquaponics monitoring system with ESP32, water quality sensors, and automated pump control.

Table of Contents

  • Aquaponics System Basics
  • Critical Water Parameters to Monitor
  • Components Required
  • Circuit and Wiring
  • ESP32 Monitoring and Control Code
  • Automation Logic
  • Aquaponics in India
  • Frequently Asked Questions

Aquaponics System Basics

An aquaponics system cycles water between the fish tank and plant grow beds:

  1. Fish produce ammonia-rich waste
  2. Beneficial bacteria (Nitrosomonas) convert ammonia to nitrites, then to nitrates
  3. Plants absorb nitrates as fertiliser — water is cleaned
  4. Clean water returns to fish tank

This nitrogen cycle requires maintaining tight parameter ranges. A single failure — pump stoppage, temperature spike, pH drift — can kill both fish and plants within hours. Automated monitoring and alerts prevent catastrophic losses.

Critical Water Parameters to Monitor

Parameter Ideal Range Critical Alarm Impact
Temperature 22-28 degrees C Below 18 or above 32 Fish stress, bacteria slowdown
pH 6.8-7.2 Below 6.0 or above 8.0 Nutrient lock-out, fish death
Dissolved Oxygen Above 5 mg/L Below 4 mg/L Fish suffocation
Ammonia Below 0.5 ppm Above 2 ppm Fish gill damage
Water level 80-100% full Below 70% (pump air-dry) Pump burnout

Components Required

Products from Zbotic

  • 12V DC Mini Submersible Water Pump — for water circulation between fish tank and grow beds
  • 5V/12V Relay Control Module — for pump and aerator control
  • GY-BME280 Sensor — ambient temperature and humidity monitoring for grow room

Full aquaponics monitor parts list:

  • ESP32 development board
  • DS18B20 waterproof temperature probe (for water temperature)
  • pH sensor module (analog, requires calibration)
  • TDS/EC sensor (for nutrient level monitoring)
  • Ultrasonic sensor HC-SR04 (waterproof variant) for tank level
  • 2-channel relay module for pump and aerator control
  • Air pump (for dissolved oxygen aeration)
  • Water circulation pump (12V submersible)
  • OLED 0.96″ display (for local status)
  • Buzzer (emergency alarm)

Circuit and Wiring

Sensor connections:

  • DS18B20 data -> GPIO4 (with 4.7k pullup to 3.3V)
  • pH sensor AOUT -> GPIO34 (ADC1_CH6)
  • TDS sensor AOUT -> GPIO35 (ADC1_CH7)
  • HC-SR04 TRIG -> GPIO26, ECHO -> GPIO25 (use JSN-SR04T waterproof variant)
  • Relay IN1 -> GPIO27 (water pump), Relay IN2 -> GPIO14 (air pump)
  • OLED SDA -> GPIO21, SCL -> GPIO22 (I2C)
  • Buzzer -> GPIO13

Keep pH and TDS sensor probes in separate compartments to avoid cross-interference. Clean pH probes weekly with electrode cleaning solution. Store pH probes submerged in KCl storage solution when not in use.

ESP32 Monitoring and Control Code

#include <Wire.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include <Adafruit_SSD1306.h>
#include <WiFi.h>

OneWire oneWire(4);
DallasTemperature tempSensor(&oneWire);
Adafruit_SSD1306 display(128, 64, &Wire, -1);

#define PUMP_PIN   27
#define AIR_PIN    14
#define BUZZER_PIN 13
#define LEVEL_TRIG 26
#define LEVEL_ECHO 25

const char* ssid = "AquaFarm";
const char* pass  = "yourpassword";

// Parameter thresholds
const float TEMP_MIN = 20.0, TEMP_MAX = 30.0;
const float PH_MIN   = 6.5,  PH_MAX  = 7.5;
const float TDS_MIN  = 300,  TDS_MAX = 1200; // ppm
const float LEVEL_MIN_CM = 10; // Alert if tank too low

float readPH() {
  int raw = analogRead(34);
  float v = raw * 3.3 / 4095.0;
  return -5.70 * v + 21.34; // Calibration values
}

float readTDS() {
  int raw = analogRead(35);
  float v = raw * 3.3 / 4095.0;
  float ec = (133.42 * v * v * v - 255.86 * v * v + 857.39 * v) * 0.5 / 1000.0;
  return ec * 640; // Convert mS/cm to ppm
}

float readWaterLevel() {
  digitalWrite(LEVEL_TRIG, LOW); delayMicroseconds(2);
  digitalWrite(LEVEL_TRIG, HIGH); delayMicroseconds(10);
  digitalWrite(LEVEL_TRIG, LOW);
  long dur = pulseIn(LEVEL_ECHO, HIGH, 30000);
  return dur * 0.017; // Distance in cm (speed of sound / 2)
}

void checkAlarms(float temp, float ph, float tds, float level) {
  bool alarm = false;
  if (temp < TEMP_MIN || temp > TEMP_MAX) { Serial.println("ALARM: Temperature!"); alarm = true; }
  if (ph < PH_MIN || ph > PH_MAX)         { Serial.println("ALARM: pH!"); alarm = true; }
  if (tds < TDS_MIN || tds > TDS_MAX)     { Serial.println("ALARM: TDS!"); alarm = true; }
  if (level < LEVEL_MIN_CM)               { Serial.println("ALARM: Low water level!"); alarm = true; }

  if (alarm) {
    for (int i = 0; i < 3; i++) {
      digitalWrite(BUZZER_PIN, HIGH); delay(300);
      digitalWrite(BUZZER_PIN, LOW); delay(200);
    }
  }
}

void setup() {
  Serial.begin(115200);
  Wire.begin(21, 22);

  tempSensor.begin();
  display.begin(SSD1306_SWITCHCAPVCC, 0x3C);
  display.clearDisplay();

  pinMode(PUMP_PIN, OUTPUT);
  pinMode(AIR_PIN, OUTPUT);
  pinMode(BUZZER_PIN, OUTPUT);
  pinMode(LEVEL_TRIG, OUTPUT);
  pinMode(LEVEL_ECHO, INPUT);

  // Default: pump and aerator on
  digitalWrite(PUMP_PIN, LOW);  // Relay active LOW
  digitalWrite(AIR_PIN, LOW);

  WiFi.begin(ssid, pass);
  Serial.println("Aquaponics Monitor Ready");
}

void loop() {
  tempSensor.requestTemperatures();
  float waterTemp = tempSensor.getTempCByIndex(0);
  float ph        = readPH();
  float tds       = readTDS();
  float level     = readWaterLevel();

  checkAlarms(waterTemp, ph, tds, level);

  // Display on OLED
  display.clearDisplay();
  display.setTextSize(1);
  display.setTextColor(SSD1306_WHITE);
  display.setCursor(0, 0);
  display.print("Temp: "); display.print(waterTemp, 1); display.println(" C");
  display.print("pH:   "); display.println(ph, 2);
  display.print("TDS:  "); display.print(tds, 0); display.println(" ppm");
  display.print("Level:"); display.print(level, 0); display.println(" cm");
  display.display();

  Serial.printf("T:%.1fC pH:%.2f TDS:%.0fppm Level:%.1fcmn",
    waterTemp, ph, tds, level);

  delay(30000); // Read every 30 seconds
}

Automation Logic

Beyond monitoring, the system automates key processes:

  • Timed pump cycles: Media-bed aquaponics uses flood-and-drain cycles (15 min on, 45 min off) to oxygenate roots
  • Low water auto-refill: When level drops below threshold, open solenoid valve to top up from reserve tank
  • Temperature response: If water temperature exceeds 30 degrees C, activate chiller or increase aeration rate
  • pH dosing: Auto-dose small amounts of food-grade acid (phosphoric acid) when pH drifts above 7.5
  • Feed timer: Automatic fish feeder relay on schedule (3x daily)

Aquaponics in India

Aquaponics is gaining traction across India:

  • Urban farms (Bengaluru, Pune, Mumbai): Rooftop aquaponics for fresh fish and greens — local premium market
  • ICAR research stations: Tilapia-vegetable systems demonstrating 60% higher protein production per square metre vs conventional farming
  • Northeast India: Freshwater fish (Rohu, Catla) combined with rice using traditional Dhap farming integrated with IoT
  • Arid regions (Rajasthan, Gujarat): 90% water saving vs soil farming — critical for water-scarce areas

Frequently Asked Questions

What fish species work best for aquaponics in India?

Tilapia (Nile) is the most popular — fast-growing, temperature-tolerant (20-32 degrees C), disease-resistant. Common carp, Rohu, and Magur (catfish) are also used. Trout requires cold water (12-18 degrees C) and is suitable for Himachal and Uttarakhand.

How accurate are the cheap pH sensors for aquaponics?

Analogue pH sensors (BNC-type, Rs 300-500) are accurate to ±0.1-0.2 pH units after 2-point calibration with pH 4.0 and 7.0 buffer solutions. Recalibrate every 2 weeks. For research-grade monitoring, invest in Atlas Scientific EZO-pH module (more stable, I2C interface).

Can I run aquaponics on solar power?

Yes, but size the system carefully. Pumps run 15-45 minutes per hour on average. A 100W solar panel with 100Ah battery can run a 50W pump system through cloudy days. Add a battery low-voltage cutoff to prevent deep discharge.

What is the minimum viable system size for commercial aquaponics?

For a viable commercial operation in India, minimum 1000 litres fish tank with 20 square metre grow beds. This supports 50-80 kg fish and 200-300 plants simultaneously, generating Rs 15,000-25,000/month revenue from mixed produce.

Shop Aquaponics and Hydroponics Parts at Zbotic

Tags: aquaponics automation, aquaponics ESP32, fish tank monitoring, hydroponics fish farming, pH sensor aquaponics, smart aquaponics India, Water Quality Monitoring
Share Post
  • Facebook
  • Linkedin
  • Whatsapp
OpenHAB vs Home Assistant: Bes...
blog openhab vs home assistant best open source platform india 599555
blog noise filtering circuit for audio build with op amp 599564
Noise Filtering Circuit for Au...

Related posts

Svg%3E
Read more

Farm Drone Pilot Training: Course and Certification India

April 1, 2026 0
Table of Contents DGCA Requirements Choosing an RPTO Curriculum and Duration Costs Career Opportunities Practical Tips Commercial agricultural drone operations... Continue reading
Svg%3E
Read more

Crop Insurance Sensor: Weather Data for Claims India

April 1, 2026 0
Table of Contents How PMFBY Works Weather Data for Claims Claim-Ready Weather Station Documenting Damage Insurance Integration Cost-Benefit PMFBY protects... Continue reading
Svg%3E
Read more

Fertigation Controller: Drip Irrigation Nutrient Mixing

April 1, 2026 0
Table of Contents What Is Fertigation EC and pH Monitoring Automated Dosing System Nutrient Schedules Sensor Integration Economics Fertigation through... Continue reading
Svg%3E
Read more

Organic Farm Certification: Monitoring Requirements

April 1, 2026 0
Table of Contents Certification Process Monitoring Requirements Sensor Documentation Soil Health Monitoring Pest Management Records Cost and Premium NPOP organic... Continue reading
Svg%3E
Read more

Agri-Tech Startups India: Technology Partners for Farmers

April 1, 2026 0
Table of Contents India’s Agri-Tech Landscape Advisory Platforms Farm Management Companies Market Linkage Startups Precision Ag Startups Choosing Partners India’s... Continue reading

Add comment Cancel reply

Your email address will not be published. Required fields are marked

Facebook Twitter Instagram Pinterest Linkedin Youtube

Get the latest deals and more.

Download on Google Play Download on the App Store

Call us: 020 69134444 / 1800 209 0998

Monday - Saturday 09:30 AM - 06:00 PM
For Technical Supports Email: [email protected]
For Sales / Enquiries Email: [email protected]

  • My Account

    • Cart

    • Wishlist

    • Checkout

    • My Orders

    • Track Order

    • My Account

  • Information

    • FAQs

    • Blogs

    • Career

    • About Us

    • Contact Us

    • Payment Options

  • Policies

    • Privacy Policy

    • Terms & Conditions

    • GST Input Tax Credit

    • Shipping Return Policy

    • E-Waste Collection Points

    • Our Sitemap

© Zbotic.in is registered trademark of Moxie Supply Pvt Ltd – All Rights Reserved
Login
Use Phone Number
Use Email Address
Not a member yet? Register Now
Reset Password
Use Phone Number
Use Email Address
Register
Already a member? Login Now