Inspired by the work @tronikos did to create a magnetometer based water meter but stymied by my own lack of skill with soldering, I set out to replicate his project using the M5Stick platform.
My repository has the ESPHOME YAML and custom code (based on M5Stack examples) for using a 6-DoF IMU Pro Mini Unit attached to the M5StickC Plus to read my water meter
I may still have some adjustments to make on the accuracy of the counter revolutions but the basic concept works with the hardware
Hope you find this useful