When passing from the inlet to the outlet the flow is going alternately through the right and the left “leg”. This is because of the “Coanda effect”.
In the U-shaped connecting channel there is a sensor which transform the frequency to an electrical signal amplified by the converter.