Button not working correctly. Static bool, Potentiometer. uno

Which I think was what was so confusing to me all along - how you are trying to manage to analog read a potentiometer AND use the same input for a switch.

Maybe it could be figured out. Easier: just use one analog input for the pot, and one digital input, however you wire and configure it, for the switch or pushbutton.

As may have been said aready.

a7