DIY water flow usage sensor

I see this flow sensor is widely used as seen in this video Track Water Usage with a Flow Sensor & NodeMCU - YouTube
has anyone integrated it into HA with esphome? on the website, there is no code template to use so i would even know how to integrate it into HA.