diff --git a/mqtt/motionSensor.py b/mqtt/motionSensor.py index 59a3b78..0cfc4dd 100644 --- a/mqtt/motionSensor.py +++ b/mqtt/motionSensor.py @@ -27,7 +27,7 @@ for proc in psutil.process_iter(): #12 is the pin number pir_sensor = 12 -GPIO.setmode(GPIO.BOARD) +GPIO.setmode(GPIO.BCM) GPIO.setup(pir_sensor, GPIO.IN)