Water flow switch problem

How to wire:
Cut off the plug in the red frame, and connect the two wires to the power supply or the GND and WP of the motherboard respectively (if you connect the WP and G of the power supply, the G and WP of the motherboard need to be short-circuited)
image
image