Energy-Aware Adaptive Sampling for Self-Sustainability in Resource-Constrained IoT Devices | Synapse