from machine import Pin import time PIR = Pin(14, Pin.IN) while True: value = PIR.value() print(value, end = " ") if value == 1: print("Des personnes sont dans la zone ...!") else: print("il n'y a personne ...!") time.sleep(0.1)