Energy-Efficient And Reliability-Driven Management Of Iot Systems