Node library for PIR sensor