Flow Meter in GUI doesn't work

//Pins for FlowMeters
const int flowPin = 2;

So your intention is to simply measure the total quantity of water flowing in the whole system, without being interested in the flow though the individual sensors. Is that correct?