print("Hello, ESP32!")
from machine import Pin
import utime
pir = Pin(15, Pin.IN, Pin.PULL_DOWN)
while True:
estado = pir.value()
print(estado)
utime.sleep_ms(500)
if estado == 0:
print("Esta todo normal")
else:
print("hay alguien en el área del sensor")