Raspberry Pi GPIO monitoring script