flow switch meter

Hi i’d like to know how can i convert “pwm” signal in a digital signal 1 or 0 ( indipendent from water flow) 1=flow 0= not flow ?

thanks

You could set a threshold in program to judge if it is on or off. The easier way if your circuit prefer no MCU, maybe this one would help seeedstudio.com/depot/flow-s … Path=84_87