Learning with the Internet of Things and Artificial Intelligence: harnessing their potential