Use an Arduino and a Raspberry Pi to track your water use in real time https://spectrum.ieee.org/build-a-wireless-water-meter-for-your-home