Okay so I want to use this flow sensor I have to essentially cut off a pump I have hooked up to a relay once it reaches a certain count. I'm just not really sure how to go about this. I'll attach a link to the flow sensor I have. Any advice on where to start or how to execute this would be greatly appreciated.
All hall effect flow meters are essentially the same, and so is the code. Since you are not interested in rate, the matter is greatly simplified, and you can strip down the code below. Your only problem is finding out what "Q" means. perhaps you can do that by calculating against a known quantity.