Protocols and Architectures for Wireless Sensor Networks