How is the temperature compensation function of a water flow meter implemented?