How to design an integrated system for a water flow meter?