ok so lets go step by step:
now we will remove the PIR folder:
rm -rf MMM-PIR-Sensor
and from here, we’re going to reinstall the MMM-PIR-Sensor modul:
git clone https://github.com/paviro/MMM-PIR-Sensor.git
run the following cmd here:
npm installand wait, this can take a few minutes.
Now you’ll have to add pi to gpio
sudo useradd -g pi gpio
and reboot your Raspi:
You’ll have to connect your PIR Sensor the right way with your Raspi.
I’ve connected my PIR Sensor on the following Pins:
I’ve got a Pi2 and use Pin 2 for power, Pin 6 for Ground and Pin 15 for Data.
– correctin grn pin
and dont forget to add the config
Attempts to remove and install the module again as the user @Bangee said
Worked with me