Sensors and Machine Learning in Energy and Embedded IoT Applications