Wireless sensor networks consist of hundreds or thousands of sensor nodes that are distributed to monitor various environmental conditions through sensing, processing, and communicating with each other and a base station. These sensor nodes have limitations in terms of power, memory, and processing capabilities compared to other networks. Wireless sensor networks have a wide range of applications including military surveillance, environmental monitoring, smart homes/buildings, and healthcare.