New protocol for PIR sensor