When I run the code
import RPi.GPIO as GPIO
from gpiozero import Button
button = Button(21)
from mfrc522 import SimpleMFRC522
reader = SimpleMFRC522()
id, text = reader.read()
if (text == "benfica"):
button.wait_for_press
print("hello")
the code will just stop and not wait for me to press the button. How do I stop it from doing this? Thanks.
I tried to change it up a little bit but couldn't