I’ve just picked up one of these circuitpython boards and hooked it up to a PIR. I’m impressed how easy it is to use. Connect it to the USB and it appears as a flash drive. You edit main.py on the drive, save changes, and they are then run by the board. For REPL, just connect via screen
and start entering commands. To read motion from the PIR all I needed was:
>>> import digitalio
>>> pir = digitalio.DigitalInOut(board.D0)
>>> pir.value
False
### Now add some movement
>>> pir.value
True