Inspiration
If you live in Singapore, you've heard NEA's B-L-O-C-K advice a million times. Change the water in your vases, clear your flowerpot plates, do it every other day. We all know it, but it's really easy to forget. An Aedes mosquito only needs about a week to go from egg to adult, and in 2025, 65% of breeding sites found in dengue cluster areas were in homes. So instead of making another reminder app, we wondered if the chore could just do itself.
What it does
Stagnot deals with standing water at home before mosquitoes can breed in it. These are our main features:
1. Automatic draining, with notifications Water in our tray drains through holes on its own, and you get notified. You don't have to remember to check your plant or tip out the plate.
2. A reservoir that keeps mosquitoes out The drained water goes into a closed reservoir with mesh. We're not just moving the water somewhere else. We're keeping it away from mosquitoes looking for a place to lay eggs, while saving it for the plant.
3. Smart watering (soil sensor in progress) We're still adding this feature. A soil moisture sensor will check how dry the soil is, and the pump will water the plant accordingly using the water in the reservoir.
4. Watering on your schedule You can also set when you want your plant to be watered.
For vases and other containers that can't be drained, we have a small sensor that tracks how long the water has been sitting and tells you when to change it.
Everything reports to our web hub. It tracks how old the water is, checks for rain so the tray doesn't drain in the middle of a downpour, and logs the reason for each decision, so you're never left wondering why your plant pot just did something.
How we built it
We used ESP32-S3 boards with copper strips to detect water. A micro servo turns a rotating disc to open and close the drain holes. For the pump, we used a 12V motor. The ESP32 can't power that on its own, so we used a relay to switch it, and soldered our hardware connections.
We modelled the tray, valve disc and reservoir in CadQuery and 3D printed them on a Bambu P1S.
The web app runs on Next.js and Vercel, with Supabase for the database and live updates. We used Resend for email login codes, Telegram for alerts and data.gov.sg for rainfall data. To add a device, you just enter its 6-digit pairing code on the site.
We originally thought about having a main hardware module, but each ESP32-S3 already has Wi-Fi. We moved all of that into the web hub, which means one less thing to build and one less thing to break.
Challenges we ran into
Getting everything to fit in the tray took a few rounds. The funnel, valve, servo and reservoir all had to go into something small enough to print and still look like it belongs under a plant.
Water sensing had its quirks too. GPIO 21 on the ESP32-S3 can't take analog readings, so with the probe on that pin we could only tell wet from dry. The spacing between the copper strips mattered as well.
Watering was tricky in its own way. If the pump pushes too much water to the plant, the extra runs back onto the tray, and we're back to the standing water we were trying to get rid of.
We also had a status LED that refused to light up, because our board settings pointed to a different pin from the one on our DevKitC-1 v1.1.
Accomplishments that we're proud of
We're proud that Stagnot is built to actually do something about the water instead of just reminding you about it. We also like that the valve is hidden inside the tray, and that the drained water can go back to the plant. The decision log is another favourite, since it explains what the system is doing in plain English.
What we learned
Draining the water is only half the job. You also have to think about where it goes, or you've just moved the breeding spot somewhere else.
We also learned how to use a relay so a 3.3V microcontroller can control a 12V motor, and how much things like pin choice, power and part sizes can shape a design. And if a device is going to act on its own, people should be able to see why.
What's next for Stagnot (Team Buzz Bytes)
First, we want to finish the soil moisture sensor, so the pump can water based on what the plant actually needs.
After that, here's what we have in mind:
- Smarter drain timing: drain sooner on hotter days, since mosquitoes develop faster in the heat.
- Dengue cluster awareness: use NEA's cluster data to drain and alert more aggressively if you live in one.
- Lift-out reservoir: make it easier to empty, with a reminder when it's full.
- Larvae and mosquito detection: try out camera and wingbeat sensing.
- Weekly household report: show how your home has been doing at stopping breeding spots.
- Community scale: bring this to whole HDB blocks, with a block-level view of breeding risk so neighbours can tackle it together.
Built With
- esp32
- motor
- relay
- servo
- switch