Chapter I: Principles and Foundations of IoT and AI Chapter II: Data Access and Distributed Processing for IoT Chapter III: Machine Learning for IoT Chapter IV: Reinforcement Learning for IoT Introduction Chapter V: Distributed AI for IoT Chapter VI: Personal and Home IoT Chapter VII: AI for the Industrial IoT Chapter VIII: AI for Smart Cities IoT