How do I come to terms with a encoder that has CLK and DT?

 

here is a counter that uses no ISR

https://www.hackster.io/vandenbrande/arduino-rotary-encoder-simple-example-ky-040-b78752