Tracking Plant Moisture with an ESP32, ASP.NET Core & Telegram
15.06.2026 -For this project, I wanted a simple and practical way to monitor whether my plants have enough water—combining microcontroller hardware on the edge with a lightweight .NET web backend.
Most of the sensing logic runs on an ESP32 controller, which measures soil moisture/voltage and sends updates via HTTP POST requests to an ASP.NET Core REST endpoint (PlantController). On the server side, a shared state service (PlantState) stores the latest readings and triggers events whenever new data arrives.
The web UI is built with Blazor and MudBlazor, subscribing to state changes so the dashboard refreshes automatically without manual reloads. Alongside the live status view, the backend can send notifications via Telegram when updates or status changes come in.
Even though the setup is compact, it ties together embedded hardware, HTTP APIs, reactive UI state updates, and chat notifications in a working end-to-end flow—with plenty of room to expand later, such as multi-plant IDs, historical logging, or smarter alert thresholds.
What challenging and very new for me was how TLS/SSL works on constrained hardware: unlike a desktop browser, the ESP32 doesn't ship with a full system trust store out of the box, so I had to handle certificate validation properly so it could securely trust and talk to my HTTPS endpoint.
