Energy Conservation for IoT Devices