I. Introduction
Among embedded devices, wireless sensor networks (WSNs) are emerging as one of the most interesting innovations in terms of potential areas of application. They have an increasing impact in fields such as security, health care, disaster management, agricultural monitoring, and building automation. This paradigm is of particular interest in an industrial setting (witnessed by the WISA system from ABB [1]), because a dense deployment of sensors enables engineers to more accurately control and optimize process parameters in manufacturing and to more effectively manage logistics [2], [3]. The most relevant feature of a WSN is that it is a dynamic distributed system, in which complex tasks are performed through the coordinated action of a large number of small autonomous devices (nodes). A problem of paramount importance for a WSN is maximizing the lifetime of the network. The lifetime is typically bounded by the amount of energy stored in each node upon its deployment. This is true especially when the system is deployed in a remote or harsh environment and/or when maintenance and battery replacement is costly. For instance, shutting down a production line for battery replacement could have a significant impact on productivity. The objective is, therefore, to design distributed algorithms for data processing and resource management that attain an optimal tradeoff between functionality, robustness and energy consumption.