Built to order

IoT Effluent Treatment Plant Monitor for Discharge Compliance: pH, Flow and TDS Telemetry

This project builds an IoT monitor for effluent treatment plants that measures pH, flow and TDS at the plant inlet and the outlet, streaming readings to a cloud compliance dashboard every 15 seconds. DFRobot pH and TDS probes plus a YF-S201 flow sensor feed an ESP32, which checks each outlet reading against installer-configurable discharge limits and flags exceedances the moment they occur. Trend charts and a timestamped event log make the compliance story visible at a glance. Suitable for B.E./B.Tech final-year projects in Electronics and IoT Engineering.

Chat on WhatsApp — get a quotation

IoT & Embedded 16x2 LCD displayYF-S201 flow sensorArduino IDE · Embedded CESP32 DevKit 12-bit ADCDFRobot SEN0161-V2 pH probeDFRobot SEN0244 TDS probeCloud telemetry dashboardHybrid
IoT Effluent Treatment Plant Monitor for Discharge Compliance: pH, Flow and TDS Telemetry — project thumbnail preview
More project photos (3)

The problem

Small effluent treatment plants usually prove their discharge is safe with a technician dipping a handheld meter into the channel once a shift — and between those checks there is no record at all. The IoT Effluent Treatment Plant Monitor for Discharge Compliance closes that blind spot with always-on telemetry: pH, flow and TDS probes sit at two points — the plant inlet and the treated outlet — while an ESP32 samples them on a 15-second frame and streams every reading to a cloud dashboard. A midnight pH excursion or a surge of dissolved solids can otherwise pass into the receiving water unnoticed, leaving the plant with no timestamped evidence for its pollution control board. The dashboard plots each outlet reading against installer-configurable discharge limits (factory defaults pH 6.5–8.5, TDS 2100 mg/L), flags exceedances the moment they occur, and keeps a timestamped event log — the student-scale equivalent of the continuous-monitoring architecture regulators expect from large industries.

SYSTEM FLOW

5 components 4 connections

Live flow
Drag to explore
100%
sensorpH probe

SEN0161 glass electrode in a flow-through chamber; 0-14 pH, ±0.1.

Follow the working sequence

How it works

Effluent is the treated wastewater leaving the plant, and discharge compliance is the legal obligation that this water stays inside the limits written in the plant's Consent to Operate. The station makes that obligation visible: two DFRobot pH probes and two TDS probes sit in flow-through sampling chambers on the inlet and outlet lines, and a YF-S201 Hall-effect flow sensor on the outlet line counts 450 pulses per litre to measure the discharge rate. The ESP32 reads the pH probes through its 12-bit ADC (4096 counts), converts conductivity to TDS, and counts flow pulses on an interrupt pin. Every 15 seconds it bundles the frame, compares each outlet value against the configured limits, and posts the readings plus any exceedance flags to the cloud dashboard over Wi-Fi. The dashboard renders the live KPIs, redraws the 24-hour charts against the configured bands, and appends exceedances to the event log. A 16x2 LCD mirrors the outlet readings locally.

  1. Effluent is diverted through two small flow-through sampling chambers — one on the inlet line, one on the outlet line — where the pH and TDS probes sit without being immersed in the open channel.
  2. The ESP32 reads each SEN0161-V2 pH probe through its 12-bit ADC (4096 counts, datasheet); the 0–3.0 V probe output converts to pH via a two-point buffer calibration (pH 4.0 and 7.0 solutions, buyer-run).
  3. Each SEN0244 TDS probe reports 0–2.3 V (datasheet) proportional to conductivity; firmware converts it to ppm with a configurable factor (default 0.5, the NaCl convention) and clamps to the 0–1000 ppm range (datasheet).
  4. The YF-S201 flow sensor emits 450 pulses per litre (datasheet); the ESP32 counts them on an interrupt and applies F = 7.5 × Q to report discharge flow in L/min plus cumulative volume.
  5. Every 15 seconds the firmware bundles one telemetry frame, compares each outlet reading against the configured discharge limits, and marks the frame compliant or exceedance.
  6. The frame is posted to the cloud dashboard over Wi-Fi; the dashboard updates KPI cards, extends the 24-hour pH and TDS charts against the configured bands, and appends any new exceedance to the event log.
  7. The 16x2 LCD shows live outlet pH, TDS and flow independently of the network, so the sensing chain is demonstrable even without Wi-Fi.

Tech stack:

  • ESP32 DevKit (Wi-Fi, 12-bit ADC)
  • DFRobot SEN0161-V2 pH probe kit (0–14, ±0.1)
  • DFRobot SEN0244 TDS probe (0–1000 ppm)
  • YF-S201 Hall flow sensor (1–30 L/min)
  • 16x2 LCD + flow-through sampling chambers
  • Embedded C firmware in the Arduino IDE
  • Cloud telemetry dashboard (working demo app)
  • Wi-Fi 802.11 b/g/n + HTTP telemetry
Parameter Value
Controller ESP32 DevKit, dual-core, 12-bit SAR ADC with 4096 counts (datasheet)
pH sensing DFRobot SEN0161-V2: 0–14 pH range, ±0.1 pH at 25 °C (datasheet), response ≤1 min (datasheet), 0–3.0 V output, BNC probe
TDS sensing DFRobot SEN0244: 0–1000 ppm range, ±10% of full scale at 25 °C (datasheet), 0–2.3 V output, AC excitation prevents probe polarization
Flow sensing YF-S201 Hall sensor: 1–30 L/min range (datasheet), 450 pulses per litre (datasheet), frequency F = 7.5 × Q in Hz (datasheet)
Sensing points Two flow-through sampling chambers (inlet + outlet), 15 s telemetry frame (design)
Discharge limits (configurable) Factory defaults pH 6.5–8.5, TDS ≤2100 mg/L — installer enters the plant's Consent-to-Operate values
Connectivity Wi-Fi 802.11 b/g/n, HTTP POST frames to the cloud dashboard
Local display 16x2 LCD showing live outlet pH, TDS and flow (design)
Power 5 V DC regulated supply, approximately 300 mA operating draw (expected)
Alerting On-frame exceedance flags + dashboard event log; alert repeat configurable 1–60 min (design)

Project features

The monitor is built around four ideas that matter: two sensing points instead of one, honest limit comparison, continuous cloud evidence, and probe hardware that survives the medium. Measuring pH and TDS at both the inlet and the outlet shows what entered the plant and what left it — the difference is the treatment performance, and a single-point monitor can never show that. Every 15 seconds the ESP32 compares each outlet reading against limits the installer sets to the plant's Consent-to-Operate values, and any breach raises an exceedance flag with a timestamped entry. The dashboard turns the stream into a narrative: live KPI cards, a 24-hour pH band chart and a TDS limit chart. And because the DFRobot SEN0161 pH probe is not rated for continuous immersion (datasheet), the build uses flow-through sampling chambers — a diverted bypass stream flows past the probes in a small cell — so the station monitors continuously without killing the glass bulb.

  • [Dual-point inlet/outlet sensing] pH and TDS probes at both the raw-effluent inlet and the treated-discharge outlet, so the dashboard shows what entered the plant and what left it — the TDS difference across the ETP is computed live as a treatment-performance metric.
  • [Compliance-limit engine] Every outlet reading is compared against installer-configurable limits on a 15-second frame; any value outside the band raises an exceedance flag and a timestamped event-log entry immediately, with a configurable alert-repeat interval.
  • [Cloud compliance dashboard] Live KPI cards for outlet pH, TDS, discharge flow and compliance status, a 24-hour pH trend chart drawn against the configured band, a TDS chart drawn against the configured maximum, and an exceedance event log — all served by the working demo app.
  • [15-second telemetry frame] The ESP32 samples all sensors, evaluates the limit engine and posts the frame over Wi-Fi; the frame interval and the dashboard refresh are documented in the firmware so a student can explain the timing in the viva.
  • [Flow-through sampling chambers] The pH and TDS probes sit in small bypass cells fed by a diverted stream instead of the open channel — the design detail that lets a probe not rated for continuous immersion (SEN0161, datasheet) survive 24/7 duty, and it is an honest talking point for the report.
  • [Local 16x2 LCD fallback] Live outlet pH, TDS and flow stay visible on the station's own display even when Wi-Fi drops, so the hardware still demonstrates its sensing with no network at all.
  • [Configurable limits and alert repeat] Factory defaults are pH 6.5–8.5 and TDS 2100 mg/L, but the installer enters the plant's actual Consent-to-Operate values through the dashboard — the project never pretends its defaults are any specific regulator's norms.

What is included

  • Assembled dual-point sensor station: ESP32, two SEN0161-V2 pH probes, two SEN0244 TDS probes, YF-S201 flow sensor, 16x2 LCD and flow-through sampling chambers
  • Complete firmware source in Embedded C with comments (calibration, limit engine, telemetry framing)
  • Working cloud dashboard demo app (the single-file HTML/JS build, with simulated telemetry for dry runs)
  • Two-point pH buffer calibration procedure (buyer-run, pH 4.0 and 7.0 buffer solutions)
  • Wiring diagram and complete component list with exact part numbers
  • Project report PDF (background, Nernst and conductivity theory, methodology, limitations)
  • PPT presentation for final review
  • Viva Q&A preparation document (pH electrode physics, ADC conversion, limit-engine design, calibration discipline)

Limitations & prerequisites

  • The SEN0161 pH probe is not rated for continuous immersion (datasheet) — the flow-through chamber design is the honest workaround; direct mounting in the open channel is not supported.
  • These are hobby-grade probes, not certified lab instruments: the ±0.1 pH and ±10% TDS figures are datasheet values at 25 °C, and real effluent temperature swings widen the error — a DS18B20 temperature-compensation add-on is an optional customization.
  • TDS is estimated from electrical conductivity with a 0.5 conversion-factor default; it cannot identify which dissolved solids are present.
  • The YF-S201's 1–30 L/min range and ±10% accuracy (datasheet) suit pilot-scale lines, not full industrial mains.
  • pH calibration drifts with time and fouling; two-point buffer recalibration is a buyer-run maintenance task, not a one-time step.
  • Without Wi-Fi only the local LCD works — the cloud dashboard, trends and remote alerts need a network (GSM/LoRa is an optional customization).
  • This is an academic prototype demonstrating compliance monitoring; it is not a certified instrument and its readings do not constitute regulatory certification.

Frequently Asked Questions

How do the discharge limits work — are these official CPCB norms?

No, and that is deliberate: the limits are installer-configurable. The dashboard ships with factory defaults of pH 6.5–8.5 and TDS 2100 mg/L, and the installer replaces them with the actual values from the plant's Consent to Operate for that specific site. Discharge limits genuinely vary by state board, industry type and receiving water body, so any project hard-coding one regulator's numbers would be misleading — configurability is the honest design.

Why does the project sense at two points — inlet and outlet?

Because a single sensing point cannot show treatment performance. The inlet measures the raw effluent load entering the plant, the outlet measures the treated discharge, and the difference — computed live as TDS removal across the ETP — is what proves the plant did its job. A single-point monitor can only say the discharge is clean or dirty; this build also shows how much cleaner it got, which is the number a plant manager actually wants.

How does the pH probe actually produce a reading?

A glass pH electrode is a tiny battery: at 25 °C it develops about −59.16 mV per pH unit (the Nernst equation) and reads 0 mV at pH 7, so the SEN0161's board is mostly a high-impedance buffer rather than a true sensor. The ESP32 digitizes that voltage with its 12-bit ADC, and a buyer-run two-point calibration against pH 4.0 and 7.0 buffers anchors the reading. The full calibration procedure is documented in the report.

Does it work without internet connectivity?

Partially — the station keeps sensing with no network at all. The local 16x2 LCD shows live outlet pH, TDS and flow, so the full sensing chain is demonstrable during an offline demo, and buffer calibration stays valid without any connectivity. The cloud dashboard, 24-hour trend charts, remote alerts and the timestamped event log need Wi-Fi — that is where the compliance-evidence value lives. A GSM or LoRa telemetry uplink is an optional customization for sites without Wi-Fi.

What maintenance does the station need?

The pH probes need the most care: clean the glass bulb with distilled water after exposure to dirty effluent and recalibrate with buffer solutions every few weeks, because readings drift as the probe fouls — the datasheet's immersion limits mean the SEN0169 variant (rated for continuous immersion) is the recommended upgrade for harsh streams. The TDS probes are largely maintenance-free thanks to AC excitation that prevents electrode polarization.

Is this project suitable for a final-year project?

Yes — for Electronics, Instrumentation, IoT and Environmental Engineering programs. It demonstrates analog sensor interfacing, ADC conversion, interrupt-based pulse counting, Wi-Fi telemetry framing, a working cloud dashboard and disciplined two-point calibration — a complete sensing-to-evidence pipeline, documented for the viva.

Components & software requirements
  • ESP32 DevKit (Wi-Fi, 12-bit ADC)
  • DFRobot SEN0161-V2 pH probe kit (0–14, ±0.1)
  • DFRobot SEN0244 TDS probe (0–1000 ppm)
  • YF-S201 Hall flow sensor (1–30 L/min)
  • 16x2 LCD + flow-through sampling chambers
  • Embedded C firmware in the Arduino IDE
  • Cloud telemetry dashboard (working demo app)
  • Wi-Fi 802.11 b/g/n + HTTP telemetry
Delivery information

Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.

Support terms

Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.

Download free synopsis (PDF)

Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.

Get a quotation