Skip to content

All work

Smartfarm Tonasa: Monitoring and Recommendations for a Hydroponic Greenhouse

An IoT and ML system for a hydroponic melon greenhouse: a TDS sensor reads nutrient concentration, and a Python worker turns the readings into recommendations that state their reasons, delivered through a web app with push notifications.

Year
2026
Kind
IoT and Machine Learning
Role
Developer
Duration
July to September 2026
With
Community service programme (KKN), Universitas Hasanuddin
For
PT Semen Tonasa melon greenhouse
Problem
The greenhouse was poorly maintained and nutrients were managed without data. The soil nearby is dry and alkaline, which is why hydroponics was chosen in the first place.
Approach
A sensor node writes to Supabase; a scheduled Python worker computes adaptive thresholds, detects anomalies and forecasts refills; a React PWA shows the state and pushes alerts.
Result
Three of four planned levels were delivered: monitoring, alerts, and recommendations with reasons. Automatic action was deliberately left out as too risky for the installation.

Built with

  • Python
  • React
  • TypeScript
  • Supabase
  • PostgreSQL
  • ESP32
  • TDS sensor
  • Web Push
  • pytest
Smartfarm Tonasa: Monitoring and Recommendations for a Hydroponic Greenhouse: cover image

A greenhouse run by feel

The hydroponic greenhouse was in poor condition and its nutrient solution was managed by feel. A dashboard full of numbers would not have helped the people running it. They needed to be told what to do, and why.

From a sensor to a recommendation

A TDS sensor on an ESP32 reads the concentration of the nutrient solution at intervals and writes it to Supabase. A Python worker runs on a schedule and does three things:

  • Adaptive thresholds. The healthy range is learned from this installation's own data, per growth phase. A "stress" label from the manager sets a safe floor.
  • Anomaly detection. A stuck sensor, a dead node, or a jump with no logged cause.
  • Forecasting. When the solution will need refilling, with an uncertainty range from walk-forward backtesting.

Every recommendation carries its reason in concrete numbers. With less than 14 days of data the system says so: it falls back to thresholds from the literature and marks them as temporary.

Three of four levels delivered

The project set out four levels and delivered three: the installation can be monitored in a web app, it raises alerts for stale data and anomalies by Web Push, and it gives recommendations with reasons. The fourth level, acting automatically, was not taken, because the risk to the installation was too high.

A recommendation is advice, not an order. The manager makes the final call, and the system records how often its advice matches their decisions.

A separate simulator reproduces the tank's behaviour and writes to the same database, so the whole loop can be demonstrated without the hardware.

Screens