button rotary encoder

Hello,
i will ask you for help solving an encoder button problem. I'm not doing the right thing and the encoder button has to be pressed all the time to be in the setup menu. I have to press the long key to enter the menu to change the value and after the next press the button to save the value and exit the menu.

Thanks in advance if you can help me.

I use a translator and apologize for any logical and spelling mistakes.

TempRotari.ino (6.96 KB)

i'm unwilling to look thru 300+ lines of code without some some description of the code or hint of where the code is reading the button

you might be able to find the problem yourself by making a copy of your code and simplifying it to isolate the problem.

I see the library includes this:

Button Library Functions
begin()
Description
Initializes the Button object and the pin it is connected to.

Syntax
myButton.begin();

I can't find where you call this function.

dougp:
I see the library includes this:

I can't find where you call this function.

Thank you very much for the help. It's already working.