ESP32 with EC11 Rotary Encoder

Have you tried the "counter" example in this library?