I wrote walkthrough on how you can build a water usage meter sensor that integrates with your Home Assistant for under 10 $/EURO, without the need of any soldering or coding skills.
Build a cheap water usage sensor using ESPhome and a proximity sensor
Build a cheap water usage sensor using ESPhome and a proximity sensor