Need help quickly! Arduino Code. Fixed

Hi, @lnowak
Welcome to the forum.

You need to detect when the button is pushed, not while the button is pushed.

Google;

arduino button change of state

Tom.. :smiley: :+1: :coffee: :australia: