Button not working correctly. Static bool, Potentiometer. uno

Indeed. So let's see a proper schematic.