i accidentally alternate connect ground and 5v with water flow sensor,no output

i accidentally alternate connect ground and 5v with water flow sensor

and it happen to output nothing at all after that,

is it possible that it now has a permanent problem?

it does not show output using this sample code: http://diyhacking.com/projects/FlowMeterDIY.ino

it does work well the first time i tried it, but yea...

is there anything i can do to make it work again? or another sample code is there one?

Your sensor has fried, most likely. No code will fix your broken sensor.