Why Architecture Matters Before You Buy a Single Sensor
Most STP monitoring projects that fail do not fail because of bad sensors or unreliable wireless technology. They fail because nobody thought through the end-to-end architecture before procurement started. Sensors get purchased without confirming they produce 4-20 mA output compatible with the node controller. Gateways get installed in locations with poor line-of-sight to the STP. Cloud platforms get selected without checking whether they can integrate with the state PCB portal. The result is a collection of components that do not work together — or worse, a system that works on day one and quietly degrades over the following months.
This guide walks through the complete architecture of a LoRa-based STP monitoring system as deployed across Indian apartment complexes, IT parks, and industrial facilities. Every component is specified with Indian pricing, every protocol choice is explained, and every design decision is grounded in lessons learned from actual installations.
The architecture follows a five-layer model, from the physical sensors that touch the wastewater through to the mobile app that an apartment society secretary uses to check STP status from home.
The Five-Layer Architecture
Layer 5: APPLICATION
Web dashboard, mobile app, alert management, PCB reports
|
| HTTPS / WebSocket
|
Layer 4: CLOUD BACKEND
API server, time-series database, analytics engine, PCB integration
|
| HTTPS / MQTT (over internet)
|
Layer 3: EDGE GATEWAY
LoRa packet reception, local buffering, internet backhaul
|
| LoRaWAN at 865-867 MHz (wireless, up to 2 km)
|
Layer 2: SENSOR NODE
Microcontroller, LoRa radio, ADC, power management
|
| Analog 4-20 mA / Digital / RS485 Modbus (wired, up to 50m)
|
Layer 1: PHYSICAL SENSORS
pH probe, DO sensor, flow meter, level sensor, turbidity sensor
Each layer has specific design choices and trade-offs. Let us go through them systematically.
Layer 1: Physical Sensors — What Touches the Wastewater
The sensor layer is the foundation of the entire system. Every number on the dashboard, every alert, every PCB report originates from a physical measurement at this layer. Sensor selection directly determines data accuracy, maintenance burden, and long-term operating cost.
Sensor Selection for Indian STP Conditions
Indian STPs present specific challenges for sensors: high ambient temperatures (35-45 degrees Celsius in summer), corrosive atmospheres from hydrogen sulphide gas, high suspended solids in the wastewater, and — in apartment STPs — unpredictable shock loads from cleaning chemicals, cooking grease, and other domestic waste.
Here is the recommended sensor suite for a typical 100-200 KLD apartment or commercial STP, with Indian market pricing:
Inlet monitoring:
| Parameter | Sensor Type | Output | Price Range | Lifespan | Key Specification |
|---|---|---|---|---|---|
| Flow rate | Electromagnetic (pressurized pipe) or open-channel ultrasonic | 4-20 mA or pulse | ₹20,000-60,000 | 5-10 years | Accuracy ±0.5% (mag) or ±2-5% (open channel) |
| pH | Glass electrode with ATC | 4-20 mA | ₹8,000-18,000 | 12-18 months (electrode) | Range 0-14, accuracy ±0.1 pH |
| Level | Ultrasonic non-contact | 4-20 mA | ₹8,000-12,000 | 5-8 years | Range 0-5 m, blind zone 30 cm |
Aeration tank:
| Parameter | Sensor Type | Output | Price Range | Lifespan | Key Specification |
|---|---|---|---|---|---|
| Dissolved oxygen | Optical (luminescence) | 4-20 mA | ₹18,000-45,000 | 2-3 years (sensor cap) | Range 0-20 mg/L, accuracy ±0.1 mg/L |
| Level | Submersible pressure | 4-20 mA | ₹6,000-10,000 | 3-5 years | Range 0-10 m H2O, accuracy ±0.25% |
| MLSS (optional) | Optical turbidity/TSS | 4-20 mA | ₹30,000-70,000 | 3-5 years | Range 0-20,000 mg/L |
Outlet and clarifier:
| Parameter | Sensor Type | Output | Price Range | Lifespan | Key Specification |
|---|---|---|---|---|---|
| pH | Glass electrode with ATC | 4-20 mA | ₹8,000-18,000 | 12-18 months | Compliance parameter — PCB mandated |
| Turbidity | Nephelometric with auto-wiper | 4-20 mA | ₹12,000-35,000 | 3-5 years | Range 0-1000 NTU, correlates with TSS |
| Flow rate | Electromagnetic | 4-20 mA | ₹25,000-60,000 | 5-10 years | Discharge volume tracking |
| Clarifier sludge blanket | Ultrasonic sludge detector | 4-20 mA | ₹25,000-60,000 | 5-8 years | Desludging scheduling |
Sludge management:
| Parameter | Sensor Type | Output | Price Range | Lifespan | Key Specification |
|---|---|---|---|---|---|
| Sludge holding tank level | Ultrasonic | 4-20 mA | ₹8,000-12,000 | 5-8 years | Desludging truck scheduling |
Total sensor cost for a comprehensive 10-point deployment: ₹1,50,000-3,50,000 depending on sensor quality tier and whether optional parameters like MLSS and clarifier sludge blanket are included.
Critical Design Consideration: Signal Output Standardization
Every sensor selected must produce a signal that the sensor node (Layer 2) can read. In Indian STP monitoring, this means standardizing on one or more of these interfaces:
4-20 mA analog current loop (most common): The industry standard for process instrumentation. 4 mA represents the minimum scale value, 20 mA represents the maximum. A sensor producing 12 mA on a 0-14 pH range indicates pH 7.0. The advantage of current loops is noise immunity — the signal is resistant to electrical interference from motors, pumps, and variable frequency drives that are present in every STP.
Pulse output: Used primarily by flow meters. Each pulse represents a fixed volume (e.g., 1 pulse = 10 litres). The sensor node counts pulses over time to calculate flow rate and totalizes them for volume.
RS485 Modbus: Some advanced sensors (COD analysers, multi-parameter probes) communicate digitally via Modbus RTU protocol over RS485 wiring. This allows transmission of multiple parameters on a single cable and provides richer diagnostic information. However, it requires the sensor node to support Modbus master communication.
Design rule: Specify all sensors as 4-20 mA output unless there is a compelling reason for an alternative. This simplifies sensor node design, reduces commissioning time, and makes future sensor replacements straightforward — any sensor producing 4-20 mA in the correct range is a drop-in replacement.
Layer 2: Sensor Node — The Intelligence at the Edge
The sensor node is the critical interface between the physical world of sensors and the wireless world of LoRa communication. It reads sensor signals, converts them to digital values, packages the data, and transmits it wirelessly.
Hardware Architecture of a Sensor Node
Sensor Node (IP65 polycarbonate enclosure, wall or pole mount)
+------------------+ +------------------+ +------------------+
| STM32L4 MCU | | LoRa Module | | Power Supply |
| (ARM Cortex-M) |--->| SX1276/SX1262 | | 12-24V DC in |
| Ultra-low power| | 865-867 MHz | | 3.3V regulated |
+--------+---------+ +------------------+ +------------------+
|
+--------v-----------------------------------------+
| Sensor Interface Board |
| - 4x 4-20mA inputs (precision 250 ohm shunt) |
| - 2x Digital inputs (pulse counting, dry contact)|
| - 1x RS485 Modbus port |
| - 2x Relay outputs (pump/blower control) |
+--------------------------------------------------+
External connections:
- 8x sensor input terminals (screw type)
- 2x power input terminals (12-24V DC)
- 1x SMA antenna connector (LoRa)
- 1x status LED
Key Component Specifications
Microcontroller: STM32L4 series (ARM Cortex-M4) This is the brain of the sensor node. The STM32L4 family is specifically designed for low-power IoT applications. It provides a 12-bit ADC (analogue-to-digital converter) with 4 channels for reading 4-20 mA signals, UART for Modbus communication, and GPIO for digital inputs and relay outputs. In sleep mode, it draws under 2 microamps. In active mode (sensor reading + LoRa transmission), it completes a full cycle in under 3 seconds before returning to sleep.
LoRa radio module: Semtech SX1276 or SX1262 The SX1276 is the most widely deployed LoRa transceiver in Indian IoT applications. It operates at 865-867 MHz (India ISM band) with adjustable spreading factors (SF7 to SF12) that trade data rate for range. For most STP deployments where the gateway is within 1 km, SF7 or SF8 is sufficient — providing fast transmission and low power consumption. The newer SX1262 offers slightly better sensitivity and lower power but at a premium price.
ADC for 4-20 mA conversion: Each 4-20 mA input passes through a precision 250 ohm shunt resistor, converting the current signal to a 1-5V voltage that the MCU's ADC reads. A 12-bit ADC provides 4,096 discrete levels across this range, giving excellent resolution — for a pH sensor on a 0-14 range, each ADC step represents approximately 0.0034 pH units, far finer than the sensor's own accuracy.
Power supply: Input voltage: 12-24V DC (compatible with STP motor control panel supplies). Internal regulation to 3.3V for the MCU and LoRa module. Power consumption in sleep mode: under 50 microamps. Power consumption during active cycle: approximately 150 mA for 2-3 seconds. This means a sensor node connected to the STP panel draws negligible power — less than a small LED indicator light.
Enclosure: IP65 polycarbonate Essential for STP environments where humidity and corrosive gases are constant. The enclosure must be sealed against moisture ingress, with cable glands for sensor wires and power input. Wall or pole mounting brackets should be stainless steel or plastic — not mild steel, which corrodes rapidly in STP atmospheres.
Node cost: ₹8,000-15,000 per unit (without sensors), depending on the number of input channels and whether relay outputs are included.
Data Packet Structure
Each transmission from the sensor node to the gateway carries a structured data payload:
{
"node_id": "STP_APT_NODE_01",
"timestamp": 1708012800,
"firmware_ver": "2.4.1",
"battery_v": 12.4,
"rssi": -87,
"snr": 8.5,
"sensors": {
"pH_inlet": 7.24,
"flow_inlet_m3h": 12.5,
"level_eq_pct": 78,
"DO_aeration_mgL": 3.82,
"level_aeration_pct": 65,
"pH_outlet": 7.51,
"turbidity_outlet_NTU": 14.3,
"level_sludge_pct": 42
},
"alarms": {
"sensor_fault": false,
"low_battery": false,
"calibration_due": ["pH_inlet"]
}
}
Payload size: Approximately 150-200 bytes when encoded as binary (CBOR or custom binary protocol). LoRa can carry up to 243 bytes per packet at SF7, so all sensor data fits comfortably in a single transmission.
Transmission schedule: Every 10-15 minutes is the standard for STP monitoring. This provides sufficient data granularity for trend analysis and regulatory reporting while keeping the LoRa network well within its duty cycle capacity. For critical parameters (pH, DO), the interval can be reduced to 5 minutes if needed, though this doubles the network load and power consumption.
Downlink capability: The sensor node can also receive commands from the cloud via the gateway — firmware updates, transmission interval changes, relay control commands (start/stop pump), and calibration offsets. This over-the-air (OTA) management capability is valuable for sites where physical access to the node requires coordinating with the STP operator.
Layer 3: LoRa Gateway — The Bridge to the Internet
The gateway receives LoRa radio transmissions from all sensor nodes within its coverage area and forwards the data to the cloud backend over the internet. It is the single most critical piece of infrastructure in the system — if the gateway goes down, all sensor data stops flowing.
Gateway Hardware Specifications
| Specification | Value | Notes |
|---|---|---|
| LoRa concentrator | Semtech SX1301 or SX1302 | 8 simultaneous receive channels |
| Frequency | 865-867 MHz (India ISM) | WPC compliant, no license needed |
| Sensitivity | -137 dBm at SF12 | Receives signals from nodes up to 2-5 km away |
| Internet backhaul | 4G LTE + Ethernet (dual) | Automatic failover |
| Power | 12W continuous (230V AC adapter) | UPS recommended |
| Enclosure | IP67 outdoor-rated aluminium | Withstands Indian monsoon conditions |
| Antenna | 3 dBi omnidirectional (included) | Upgradable to 5-8 dBi for extended range |
| Operating temperature | -20 to +60 degrees Celsius | Handles Indian summer |
| Local storage | 8-32 GB SD card | Buffers data during internet outages |
| Price range | ₹45,000-75,000 | Industrial-grade with dual backhaul |
Gateway Placement: The Most Important Installation Decision
Where you mount the gateway determines the reliability of the entire system. Poor placement is the number one cause of unreliable LoRa communication in STP deployments.
Ideal placement:
- Location: Rooftop of the nearest building to the STP (admin block, club house, guard house)
- Height: As high as practical — 10 to 30 feet above ground level gives the best propagation
- Orientation: Clear line of sight to the STP area. Avoid metal structures, water tanks, or lift machine rooms between gateway and STP
- Internet: Ethernet cable from the building's router/switch (primary), with 4G SIM card as automatic backup
- Power: 230V AC outlet with UPS backup (a small 600VA UPS at ₹3,000-5,000 provides 2-4 hours backup)
Placement for basement STPs: This is the most challenging scenario and the most common in Indian apartment complexes. The LoRa signal from a basement STP must travel upward through 2-3 reinforced concrete floor slabs to reach the gateway.
Solutions, in order of preference:
- Gateway on ground floor exterior wall with antenna pointing down toward the basement — shortest signal path
- Gateway on rooftop with high-gain antenna — more total distance but fewer obstructions per metre
- Repeater node at basement entrance — receives LoRa signal from underground node and retransmits to rooftop gateway
In 90% of Indian apartment deployments, option 1 or 2 works without needing a repeater. Always conduct a signal test before committing to a gateway location.
Gateway Software Stack
The gateway runs a Linux-based operating system with three key software components:
LoRa packet forwarder: Listens on all 8 LoRa channels simultaneously. When a sensor node transmits, the packet forwarder decodes the LoRa packet, extracts the payload, and adds metadata (RSSI, SNR, timestamp, gateway ID). This packet is then queued for upload.
MQTT client: Publishes decoded sensor data to the cloud backend's MQTT broker. MQTT (Message Queuing Telemetry Transport) is the standard protocol for IoT data — lightweight, reliable, and designed for intermittent connectivity. If the internet connection drops, the MQTT client queues messages locally and resends them when connectivity returns.
Local buffer and store-and-forward: The gateway stores the last 7-30 days of sensor data on its SD card. If the internet connection fails for hours (or even days — not uncommon in some Indian locations), no data is lost. When connectivity resumes, the buffered data is uploaded to the cloud in chronological order.
Optional: Local alert processing: Some gateway configurations include a rules engine that generates alerts locally — without depending on the cloud. If pH exceeds 8.5, the gateway can send an SMS directly (via its 4G modem) to the operator, even if the cloud platform is unreachable. This adds resilience for critical alerts.
Layer 4: Cloud Backend — Where Data Becomes Intelligence
The cloud backend receives raw sensor data from the gateway and transforms it into actionable information — dashboards, alerts, reports, and compliance submissions.
Cloud Architecture Components
From gateway (MQTT over TLS):
|
v
[MQTT Broker] --> [Stream Processor] --> [Time-Series Database]
| | |
| v v
| [Alert Engine] [Analytics Engine]
| | |
v v v
[API Server] <---------- [Notification Service] [Report Generator]
| | |
v v v
[Web Dashboard] [SMS/Push/Email] [PCB Portal API]
[Mobile App] [WhatsApp alerts] [PDF/Excel exports]
Time-Series Database
STP monitoring generates time-series data — sensor readings tagged with timestamps. The database must handle:
- Write volume: 10 sensors reporting every 10 minutes = 1,440 data points per day per STP. For a platform managing 100 STPs, that is 144,000 writes per day — modest by database standards, but the data must be retained for years (PCB may request historical data going back 2-3 years).
- Query patterns: "Show me pH outlet for the last 24 hours" (time-range query), "What was the average DO last month?" (aggregation), "When did turbidity exceed 30 NTU?" (threshold search).
InfluxDB and TimescaleDB are the two most common choices. InfluxDB is purpose-built for time-series data and offers built-in retention policies (automatically delete data older than X years), continuous queries (pre-compute hourly/daily averages), and native downsampling. TimescaleDB extends PostgreSQL with time-series optimisations, which is advantageous if the cloud platform also needs relational data (user accounts, sensor configurations, alert rules).
Alert Engine: Rules and Escalation
The alert engine evaluates incoming sensor data against configurable rules. Here is how a well-designed alert configuration works for an Indian apartment STP:
Alert rule example — pH outlet excursion:
Rule: pH_outlet_high
Condition: pH_outlet > 8.5 for more than 30 consecutive minutes
Severity: HIGH
Actions:
- Immediate: SMS to STP operator mobile
- After 15 min (no acknowledgment): SMS to facility manager
- After 30 min: SMS to society secretary + email to AMC vendor
- Log: Record excursion start time, duration, max value
- Compliance: Flag for PCB excursion report
Alert rule example — DO-based blower optimisation:
Rule: DO_blower_control
Condition: DO_aeration > 4.5 mg/L for more than 15 minutes
Severity: INFORMATIONAL
Actions:
- Push notification to operator: "DO high - consider reducing aeration"
- If automation enabled: Send relay OFF command to sensor node (stop blower)
- Log: Record blower stop event with DO reading
Alert rule example — sensor fault detection:
Rule: sensor_offline
Condition: No data received from node for more than 3 consecutive intervals (45 min)
Severity: MEDIUM
Actions:
- SMS to operator: "Sensor node STP_NODE_01 offline - check power and antenna"
- Dashboard: Show sensor status as OFFLINE (grey indicator)
- Log: Record offline event for maintenance tracking
A well-configured STP monitoring system has 15-25 alert rules covering parameter excursions, equipment faults, sensor health, and trend-based early warnings. Getting these rules right — avoiding false alarms while catching real problems — typically takes 2-4 weeks of tuning after initial deployment.
PCB Portal Integration
Most Indian state Pollution Control Boards (KSPCB, MPCB, TNPCB, DPCC, GPCB, and others) now require online submission of STP monitoring data. The cloud backend handles this automatically:
Data flow to PCB portal:
- Every 30 minutes (or as required by the state PCB), the integration module fetches the latest sensor averages from the time-series database
- Data is formatted per the state PCB's API specification (JSON or XML — varies by state)
- An HTTP POST request sends the data to the PCB portal endpoint
- The response (success/failure) is logged for audit trail
- If submission fails, the system retries three times, then alerts the operator
State-specific requirements:
| State PCB | Parameters Required | Submission Frequency | Portal/API |
|---|---|---|---|
| KSPCB (Karnataka) | pH, flow (inlet + outlet) | Every 30 minutes | KSPCB online portal |
| MPCB (Maharashtra) | pH (outlet), flow (inlet) | Hourly average | MPCB OCEMS platform |
| TNPCB (Tamil Nadu) | pH, flow, COD (industrial) | 15-minute intervals | TNPCB online system |
| DPCC (Delhi) | pH, flow | Continuous/real-time | DPCC portal |
| GPCB (Gujarat) | pH, flow, COD (industrial) | 30-minute intervals | GPCB OCEMS |
| CPCB (central) | Varies by category | Varies | CPCB online portal |
The cloud platform must be configurable for each state's specific format, frequency, and portal endpoint. A platform deployed across multiple states needs to handle all variations.
Layer 5: Application — What Users Actually See and Do
The application layer is where all the underlying technology becomes useful. This layer serves multiple user personas — each with different needs and different levels of technical sophistication.
Web Dashboard
For the STP operator:
- Live parameter readings with colour-coded status (green/yellow/red)
- Trend graphs for each parameter (selectable: 1 hour, 6 hours, 24 hours, 7 days, 30 days)
- Active alerts with acknowledge button
- Maintenance log entry (record calibration, chemical dosing, equipment repairs)
- Equipment runtime counters (blower hours, pump cycles)
For the facility manager or society secretary:
- STP health summary card (single glance: "All normal" or "2 alerts active")
- Weekly and monthly summary reports (auto-generated)
- Cost tracking (electricity consumption trends if power monitoring is included)
- Compliance status (PCB submission success/failure log)
For the AMC vendor (if applicable):
- Read-only access to sensor data and alerts
- Maintenance schedule and history
- Performance benchmarks (comparison across multiple client STPs)
Mobile App
The mobile app is often the most-used interface in Indian STP monitoring. Operators and facility managers check the app 5-15 times per day — far more frequently than they log into the web dashboard.
Core features:
- Push notifications for alerts (the primary alert delivery channel — faster than SMS in urban areas)
- Quick-view card showing current status of all parameters
- Pull-to-refresh for latest data
- Alert acknowledgment (operator can confirm they have seen and are addressing the issue)
- Direct call buttons (tap to call AMC vendor, tap to call society president)
- Photo attachment to maintenance logs (photograph the equipment issue before and after repair)
Technology stack: Flutter or React Native for cross-platform (Android and iOS) development from a single codebase. This keeps development and maintenance costs manageable. Android is the priority platform for Indian deployments — over 95% of STP operators use Android phones.
Report Generation
The platform generates several categories of reports:
Daily operations report (auto-generated, emailed at 7 AM):
- All parameter readings: min, max, average for the past 24 hours
- Alert log: every alert that triggered, who acknowledged it, what action was taken
- Equipment runtime summary
Monthly compliance report (auto-generated on the 1st of each month):
- 30-day summary of all parameters
- Excursion log with timestamps and durations
- Average, minimum, and maximum values
- PCB submission status (number of successful submissions out of total required)
- Pre-formatted for SPCB monthly return submission
On-demand reports:
- Custom date range with parameter selection
- Export as PDF (for sharing) or Excel (for analysis)
- Comparative reports (this month vs last month, this year vs last year)
Network Topology Options for Different STP Layouts
Star Topology (Standard for Most Deployments)
Sensor Node 1 (Inlet) -----+
Sensor Node 2 (Aeration) ---+---> [LoRa Gateway] ---> Internet ---> Cloud
Sensor Node 3 (Outlet) ----+
Best for: Compact STPs where all sensor nodes are within 500m-1 km of the gateway. This covers 80-90% of Indian apartment and commercial STP deployments.
Advantages: Simple design, lowest latency, easiest to troubleshoot. Each sensor node communicates directly with the gateway — no intermediate hops, no relay dependencies.
Node count per gateway: A single 8-channel LoRa gateway comfortably handles 200-300 sensor nodes transmitting every 10-15 minutes. For an STP with 10-15 sensor nodes, the gateway is operating at less than 10% capacity — leaving ample room for future expansion into water tank monitoring, energy metering, or other campus IoT applications.
Multi-Gateway Topology (Large Campuses)
[STP Area] [Factory Floor]
Nodes 1-12 --> [Gateway A] --+ Nodes 13-25 --> [Gateway B] --+
| |
+--> [Cloud Backend] <--------------------------+
Best for: Large industrial campuses where the STP is in one area and additional monitoring points (cooling towers, effluent treatment, process water) are in another area more than 1 km away.
Advantages: Each gateway has clear coverage of its zone. No sensor node needs to transmit at maximum power. Redundancy — if one gateway fails, the other zone continues operating.
Indian example: A pharmaceutical manufacturing campus near Hyderabad uses two gateways — one covering the 300 KLD STP and sludge management area, another covering the effluent treatment plant and product-contact water monitoring. Both gateways report to the same cloud platform, providing a unified dashboard for the environment officer.
Star with Repeater (Basement STPs with Difficult RF Path)
[Basement STP] [Ground Floor] [Rooftop]
Sensor Nodes --> [Repeater Node] ----wireless----> [LoRa Gateway] --> Internet
(at basement entrance)
Best for: Deep basement STPs where the direct signal path through 3+ concrete slabs is marginal (RSSI worse than -115 dBm).
The repeater node is essentially a sensor node without sensors — it receives LoRa packets from the basement nodes and retransmits them with a fresh signal. It is mounted at the basement entrance or stairwell, where it has good connectivity both downward to the basement and upward to the rooftop gateway.
Cost: An additional ₹8,000-12,000 for the repeater hardware. This is less expensive than upgrading to a high-power gateway (₹90,000+) and often more effective because it shortens the difficult underground signal path.
Deployment: From Survey to Go-Live
A well-planned deployment follows a structured process. Rushing the deployment to save time invariably causes problems that take longer to fix than the time saved.
Phase 1: Site Survey and Design (2-3 Days)
Day 1 — Physical survey:
- Walk the STP with the operator. Identify sensor mounting points for each parameter.
- Check sensor installation requirements: Is there adequate flow past the pH sensor location? Is the DO sensor mounting point at mid-depth in the aeration tank? Is there a suitable weir location for the open-channel flow meter?
- Photograph every mounting point. Note available power supply (voltage, location of nearest panel).
Day 2 — LoRa coverage test:
- Place a test transmitter at the proposed sensor node location(s) inside the STP
- Mount a test gateway at the proposed gateway location
- Walk the path between them, logging RSSI at multiple points
- Acceptable: RSSI better than -110 dBm. Good: better than -100 dBm. Excellent: better than -90 dBm
- If coverage is marginal, test alternative gateway positions or antenna upgrades before proceeding
Day 3 — Design documentation:
- Network architecture diagram (node locations, gateway location, cable routing for sensor-to-node connections)
- Bill of materials with specific model numbers and quantities
- Cloud platform configuration plan (user accounts, alert rules, PCB integration requirements)
- Installation schedule
Phase 2: Procurement and Preparation (1-2 Weeks)
- Order sensors, node controllers, gateway, enclosures, cabling, and mounting hardware
- Pre-configure LoRa node controllers on the bench (load firmware, set node IDs, configure transmission parameters)
- Pre-configure gateway (install software, set up MQTT connection to cloud)
- Set up cloud platform (create site, configure sensors, set up user accounts)
- Prepare calibration standards (pH buffer solutions 4.0 and 7.0, turbidity standards)
Phase 3: On-Site Installation (2-3 Days)
Day 1 — Sensor and node installation:
- Mount sensors at identified locations (coordinate with STP operator to ensure safe access to tanks)
- Mount sensor node enclosures (near STP panel for power access)
- Wire sensors to node controllers (4-20 mA cables, shielded for noise immunity)
- Connect power supply (12-24V DC from STP panel)
Day 2 — Gateway installation and network testing:
- Mount gateway at the surveyed location
- Connect antenna, power, and internet (Ethernet or 4G SIM)
- Power on all nodes and gateway
- Verify data reception: check cloud dashboard for data from each sensor
- Test signal quality: confirm RSSI and packet delivery rate for each node
- Resolve any coverage issues (reposition antenna, add repeater if needed)
Day 3 — Calibration and commissioning:
- Calibrate pH sensors (2-point calibration with pH 4.0 and 7.0 buffers)
- Verify DO sensor (air saturation check: should read 8.2-8.4 mg/L at 25 degrees Celsius at sea level)
- Verify flow meter (compare with manual measurement if possible)
- Confirm level sensors (measure actual tank level and compare with sensor reading)
- Verify turbidity sensor (check zero reading in clean water)
- Configure alert thresholds based on the STP's specific operating parameters
- Test alert delivery (trigger a test alert, verify SMS/push notification reaches all configured recipients)
Phase 4: Training and Handover (1 Day)
- Train STP operator on mobile app (viewing data, acknowledging alerts, logging maintenance)
- Train facility manager on web dashboard (viewing reports, understanding trends, managing users)
- Demonstrate PCB portal integration (show automated data submissions, explain the compliance report)
- Hand over documentation: sensor locations, calibration records, node/gateway configuration, troubleshooting guide
- Define maintenance schedule and responsibilities
Total deployment time: 3-5 days on-site (excluding procurement lead time). For experienced installation teams, a standard 10-sensor STP deployment is routinely completed in 3 days.
Maintenance Schedule for Long-Term Reliability
The system requires ongoing maintenance to maintain data accuracy and reliability. Here is the recommended schedule based on Indian STP operating conditions:
| Frequency | Task | Estimated Time | Notes |
|---|---|---|---|
| Weekly | Check dashboard for sensor health indicators | 10 minutes | Verify all sensors reporting, check battery levels |
| Monthly | pH sensor calibration check | 30 minutes | Use pH 7.0 buffer, recalibrate if drift >0.2 pH |
| Monthly | Clean turbidity sensor optics | 15 minutes | Wipe optical window, check auto-wiper function |
| Quarterly | DO sensor calibration verification | 30 minutes | Air saturation check, replace sensor cap if degraded |
| Quarterly | Flow meter inspection | 20 minutes | Check for deposits on electromagnetic sensor electrodes |
| Quarterly | Review and optimise alert thresholds | 30 minutes | Reduce false alarms, tighten thresholds as confidence grows |
| Annually | Replace pH electrodes | 30 minutes | Budget ₹8,000-15,000 per electrode |
| Annually | Gateway firmware update | 15 minutes | OTA update from vendor |
| Annually | Full system audit | 2-3 hours | Verify all sensors against lab measurements, check all connections |
Annual maintenance cost estimate: ₹30,000-50,000 for a 10-sensor deployment (primarily pH electrode replacements and calibration consumables).
Architecture Cost Summary
For a standard apartment complex STP (400 flats, 120-150 KLD) with 10 monitoring points:
| Layer | Component | Cost |
|---|---|---|
| Layer 1 | Sensors (10 points) | ₹1,50,000-2,50,000 |
| Layer 2 | Sensor node controllers (2-3 units) | ₹25,000-45,000 |
| Layer 3 | LoRa gateway (1 unit, outdoor IP67) | ₹45,000-75,000 |
| Layer 4 | Cloud platform (Year 1) | ₹18,000-36,000 |
| Layer 5 | Mobile app + web dashboard | Included in cloud platform |
| — | Installation and commissioning | ₹30,000-50,000 |
| — | Training and documentation | ₹10,000-15,000 |
| Total Year 1 | ₹2,78,000-4,71,000 | |
| Annual recurring (Year 2+) | Cloud + maintenance | ₹48,000-86,000 |
For a 400-flat apartment, the Year 1 cost works out to ₹700-1,200 per flat — typically absorbed within one quarterly maintenance bill. Annual recurring is ₹120-215 per flat — less than the cost of one PCB fine divided across all flats.
Conclusion: Architecture First, Procurement Second
The most successful STP monitoring deployments start with architecture design and end with component procurement — not the other way around. Define what you need to measure, design the network topology that provides reliable coverage, select the cloud platform that meets your compliance and operational requirements, and then — only then — select specific sensors and hardware.
A well-architected system is also a system that grows gracefully. When you want to add water tank monitoring or energy metering to the same campus, the LoRa gateway you installed for STP monitoring has capacity for hundreds of additional sensors. The cloud platform already has the user accounts, alert infrastructure, and reporting engine in place. Expanding from STP monitoring to comprehensive smart building or smart city monitoring becomes an incremental addition rather than a new project.
Need architecture design for your STP? IoTMATE provides complimentary system design consultations for STP monitoring projects across India. We assess your STP, recommend sensor points based on your treatment process and regulatory requirements, design the LoRa network topology, and provide a detailed bill of materials with costs. Contact us to schedule a consultation.
