Help! I am creating Rotary Encoder Meter with Arduino

You must be using an ‘unsigned’ int (or uint16_t?) as a counter somewhere. Change it to ‘int’ (or int16_t)