Internet of Things and Bayesian Networks