Replaced test code for PIR sensor