A wireless sensor network (WSN) is a group of sensor nodes, that are spatially distributed over an area to perform a specific monitoring task by measuring some physical quantity, such as temperature or humidity. In such a network, the sensors are wirelessly connected to the infrastructure, e.g., a c...