Use the MT6701 magnet rotary encoder with ESP.
Interface with the MT6701 magnet rotary encoder with ESP via I2C.