I have done this using a flowmeter from Amazon (very cheap and loads of different sizes, only issue is they HATE chaeto!) and a raspberry pi and a little coding in python - using Tuya I push the data to my phone, currently monitoring:
Cooler/UV Flow
Total flow (main pump and cooler pump combine in case of failure)
Scrubber flow (seperate pump)
RO in flow
RO waste flow
mains to RO filter flow
TDS Mains
TDS RO in
TDS RO Resevoir
PH tank
PH Kalk mixer
ORP
Dissolved O2
Atmospheric CO2 (in Sump)
Humidity Sump
Temperature
Salinity
Toying with the idea of using "sonar" to do sump water depth sensing
All being pushed to Tuya to my own app. Flow meters are from Amazon, most of the rest are Atlas Scientific (PH & temp is their gravity range using a ADS1115, the rest use i2c)
Whole lot was relatively cheap (about €800) - considering Neptune charges €1,000 for their dissolved O2 probe!, Salinity, Dissolved O2 and ORP were the most expensive, cost would have €300 without those.
W.