3D printed water flow adaptor

Here is one that is used frequently and has a lot of documentation on the web available.

YF-S201 Flowswitch

Here is an example that I came up with;