Thanks everybody for the suggestions/ideas - I've tried to answer them all, and added some follow-up questions. When I figure this out, I'll make sure to update with photos of the setup, and let you know if it works...
My main concern actually is if I use the float sensor, I'm a bit worried about frying the MCU - @inse mentioned a 1K ohm resistor - and using two diodes - does it matter what type? and where would you put them? I'm going to look at the other approaches as well.
@floobydust
I think plant leaves and roots will find their way to any sensor used inside the tub. That makes floats/electrodes etc. a poor solution
The plants are actually in individual pots usually
- so the white tubs just have water, with some dirt that might have leaked/fallen out.
Some plants do get a bit bushy (which is a good thing! As in, I love plants, and I want them to grow well, haha), but it shouldn't get *too* overgrown*. Do you think that's still an issue?
@ Irilia
A simple Timer is probably the safest, if you have a constant flow. I recommend to have an or something to track the water level and averting you if the level of the water become to low.
Unfortunately, all of these tubs are outside (since carnivorous plants need *lots* of sunlight - and also, they plants generally do much better outdoors. Many of them originate from bog conditions in the US Pacific Northwest).
Hence, I get a lot of water loss via evaporation (although that evaporation loss is also what boosts the humidity around the plants, which is what they crave), but then also some top-up through rainfall. Hence why I wanted a sensor on the tubs, so I know when they're empty, and so I can link it up to a drip irrigation system.
@inse
Actually a brilliant idea to connect all containers in daisy chain with a hose entering and exiting at the desired water level. The containers would not need to be stacked, same level or lower is possible.
That's a clever idea - however, I have a *lot* (> 20) of tubs
, and I think it would be also very difficult to get them all in some decreasing height or have it all flow neatly like that.
@Randy222
Plants and bugs almost always clog mechanical means.
As mentioned above - the plants themeslves are in black pots, which are then sitting in water in the white trays.
However, there's obviously dirt etc, which can and does get in the water.
For say, a stainless steel float sensor (e.g.
PLS-045A-3VAI that one - how sensitive is this to dust/dirt or clogging up?)
@Randy222
Is too much water in the bucket also a bad thing?
Yup, it is unfortunately. If the water level is too high, it causes root rots for the plants. The idea with carnivorous plants is that you sit them in water, and the media wicks up water via capillary action so that the growing media is wet but not waterlogged. Hence why I try to keep say 2-5cm of water in all of my trays. But obviously with outdoor weather in Australia, it means they can dry out in a few hours (on a sunny day), or may overflow (with the rains etc.).
@ IanB
A long time ago, water level sensors might have used stainless steel rods of various lengths dipping below the water surface. When a rod pokes below the water line, conductivity between rods indicates the presence of water. A very similar principle is used in soil moisture sensors for house plants. In fact, a soil moisture sensor might possibly be repurposed for this task.
I did actually think about using those wireless water leak detectors - apparently you can attach wires directly to the electrodes on them, and then dangle those wires into a container. Then you would flip the alert around so instead of detecting a water leak, it would detect the absence of a water leak (i.e. to indicate the container is dry).
https://www.reddit.com/r/homeassistant/comments/zwouod/could_you_submerge_a_leak_sensor_and_use_it_as_a/https://www.reddit.com/r/Aqara/comments/13f1ych/know_if_water_tank_full_with_leak_sensor/https://www.reddit.com/r/homeassistant/comments/vxf6t1/low_water_level_detection/https://www.reddit.com/r/HomeKit/comments/ibogq3/aqara_water_leak_sensor/https://www.reddit.com/r/HomeKit/comments/iaei09/water_sensor_and_then_ifttt/However, I was a bit concerned that this would drain the battery on those sensors quickly (since they're designed to detect water leaks, and likely assume those are rarer), and also, it only detects when completely dry - whereas I ideally want to top up the water wel before it gets to that point - as by that point, the plants are already suffering).
The soil sensor idea is interesting - however, I don't know how well they'd do with constant submersion in water....
In fact, most of the soil sensors out there tend to fail after 6-12 months, I assume due to corrosion - apparently the salts etc in soils mixed with water are very bad for electronics.
Also, I water with RO (reverse osmosis) water, so this is what will be in the tubs. I've heard this can be incredibly corrosive to metals - but perhaps stainless steel should be ok?