So I’m trying to build a liquid dispensing device for my vacation project. I am using an Arduino Nano, ACM INCREMENTAL ROTARY ENCODER and an LCD screen. So, I’m struggling to program the rotary encoder. My arduino reads the pin values even though I didn’t touch the encoder at all. Is there something wrong with my code or is the rotary encoder not compatible with Arduino?
Thanking you all in advance.