n-for-timer 5;;");;}}
Gefunden bei http://www.computerhilfen.de ((https://www.computerhilfen.de/info/bewegungsmelder-hc-sr501-an-die-r... Fall ein/ausschalten, wenn das Ding vorher asl Output definiert wurde (mit i2cset -y 1 0x20 0x00 0x00 alle auf output schalten)) und der 3. Wert ist in dem Fall ein/au... an GPIO-Pin 23 angeschlossen
while True:
input_state = GPIO.input(23)
if input_state == False:
print('Taster gedrueckt')
time.sleep(2) # war 0.2, ab