Interfacing the PIR sensor