I am trying my hands on home automation using RPi. I have a simple set-up to start with: a PIR sensor and a relay driver. In my C program (written using wiringPi APIs), I have a callback registered for a raising edge interrupt ( this is to monitor my PIR sensor). I have configured another GPIO pin t...