Become a leader in the IoT community!
New DevHeads get a 320-point leaderboard boost when joining the DevHeads IoT Integration Community. In addition to learning and advising, active community leaders are rewarded with community recognition and free tech stuff. Start your Legendary Collaboration now!
Hi @ab.ax5 , can you introduce a short delay after reading the button state to account for any bouncing that might occur. Cus you would need to allow the button to stabilize before reading its state again
Instead of relying solely on the while loop, use an if statement with a small delay to check the button state
You are welcome
CONTRIBUTE TO THIS THREAD