Rapid advances in the areas of sensor design, information technologies, and wireless networks have paved the way for the proliferation of wireless sensor networks. These networks have the potential to interface the physical world with the virtual (computing) world on an unprecedented scale and provide practical usefulness in developing a large number of applications, including the protection of civil infrastructures, habitat monitoring, precision agriculture, toxic gas detection, supply chain management, and health care. However, the design of wireless sensor networks introduces formidable challenges, since the required body of knowledge encompasses a whole range of topics in the field of electrical and computer engineering, as well as computer science. Wireless sensor networks are currently being offered as a subject at advanced undergraduate and graduate levels at many universities around the world. Moreover, they are the focus of countless graduate theses and student projects.Therefore, this book is primarily written as a textbook aimed at students of engineering and computer science.