Artificial Intelligence and Internet of Things in Smart Farming