Wireless sensor networks (WSNs) consist of distributed sensor nodes that self-organize to monitor environmental conditions over a wide area. They have many potential applications including health monitoring, infrastructure monitoring, and environmental monitoring. A WSN system includes wireless sensor nodes that collect data and a gateway that provides connectivity to the internet. Each node contains sensors, a microcontroller, radio, and battery. Together, WSNs provide a low-cost way to remotely collect and share sensor data.