A PIR based wireless sensor node prototype for surveillance applications