Low-cost energy-aware sensor data acquisition at scale