Project: burst water pipe guard
Materials:
Hall-effect water flow sensor
Motorised valve (normally-closed)
Arduino circuit board
Skills:
Modest plumbing
C++
Operation:
If there is a continuous flow of, say, 100 litres, the circuit board terminates the power to the motorised valve, which closes, cutting off the water flow.
If more than the programmed amount is needed, the flow can be stopped briefly before reaching the cut-off point, and then restarted.
The circuit board can be reset by turning off, and then on.
Status:
Unfortunately I don’t know C++, so have been unable to undertake this project, but if anyone does so, please let me know! Obviously, all sorts of variations are possible, and with a Raspberry Pi, a more sophisticated system would be possible. It might also form part of a “smart” system.
Hi, welcome!
I took the liberty to change the category of your post because you do not actually have this project to share. You instead look for someone to help you with it. I picked the ESPHome category, because an ESP would be quite capable to host such a project. It is even very likely you can do so without needing to write any C/C++. So maybe in the new category you will find the help you need.
you might start here: Automatic/Motorized Water Shut Off Valves
But, if your goal is a working system quickly, you might be better served by buying a commercially available system.
If your goal is more to learn and you are okay with it taking weeks to months to years to have a fully working system, start with the link above and start asking questions and trying things out.