from machine import Pin
from time import sleep
motion = False
def handle_interrupt(pin):
gloobal motion
motio=True from machine import Pin
from time import sleep
motion = False
def handle_interrupt(pin):
gloobal motion
motio=True