Performance enhancement of passive infrared (PIR) sensor in internet of things (IoT) network for energy management