switched to pigpio to read pir sensor