How to integrate a water flow meter with a PLC system?