@cruunnerr
I have had success with your help and my PIR sensor but only after running pir.py from .bashrc
The script is working however I read the following warning when accessing my Magic Mirror with SSH:
RuntimeWarning. This channel is already in use, continuing anyway. io.setup(LED_PIN, io.OUT)
My end result is not affected. The PIR works fine.
Thank you