Wireless Sensor Networks (WSNs) are a rapidly emerging research area because of their vast application vistas in real-world environments, as well as their rapid deployments at low cost and with high flexibility. In 2003, Technology Review ranked WSNs among 10 emerging technologies that will change the world. WSNs consist of tiny sensor nodes that can be easily embedded in the environment, establish a wireless ad-hoc network, and compose a distributed system to collaboratively sense physical phenomena and process sensed data, or to react to the environment based on the sensed data. To practically use this technology, WSNs must be able to operate unattended for long periods of time, especially when deployed in inaccessible places. Moreover, t...