Energy-aware sensing