Help with IoT water flow monitoring schematic

I don't get how your circuit is supposed to work. Can't water start flowing at any time? If so, won't your sensor completely miss that if it is not powered with 5V full time?