Does the LED turn on/off when you press/release the button? Does it turn off when you release it? Open the Serial Monitor — do you see “pressed” and “not pressed” updating? How it works: In this code, ...