A Balanced Energy Consumption Strategy using a Smart Base Station in Wireless Sensor Networks