IoT - Machine learning - How it works