Sample code for connecting a PIR-sensor to a Raspberry Pi