If they can do all that, why not just signal an electric upstream shutoff valve and stop the flooding. I'm sure they have that already .. right?
Of course..
https://www.amazon.com/Floodstop-Aut.../dp/B00EA426X6
Add that to the very long list of things I've invented way too late. I invented the CVT at one point.