Energy Management in Sensor Networks for Environmental Monitoring