Optimizing Sensor Data Acquisition for Energy