A Study on Energy Consumption and Efficiency in Wireless Sensor Networks