from machine import Pin
import time
from time import sleep
mt = Pin(18, Pin.IN)
led = Pin(19, Pin.OUT)
while True:
mtv = mt.value()
## ให้เขียน code เงือนไข if else แสดงสถานะการทำงานของ PIR Motion
from machine import Pin
import time
from time import sleep
mt = Pin(18, Pin.IN)
led = Pin(19, Pin.OUT)
while True:
mtv = mt.value()
## ให้เขียน code เงือนไข if else แสดงสถานะการทำงานของ PIR Motion