Energy saving in wireless sensor networks