An Adaptive and Low-latency Power Management Protocol for Wireless Sensor Networks