Water leak detection

For the average you might use - Arduino Playground - Statistics -

However looking at the problem you not only want to detect an higher average daily use, but also a sustained flow of longer than lets say an hour should cause a "code orange" alert, you don't want a leak to flow for several hours ...