Improving the Energy Efficiency of IoT-Systems and its Software