Help with IoT water flow monitoring schematic

People usually still have water flowing during a commercial power failure. So, you will loose all stored readings and take no new readings. Why bother if this happens frequently?