debug of PIR sensor