Flow sensor and two relays!

The reason why nothing happened is:

You can't just copy & paste gcjr-codes.

You have to adapt the code to your hardware

If you don't want to depend on the help for each and every tiny detail how to code it. It is about time to learn some basics.

and how to use this forum