Bayes’ Network And Smart Sensors: Occupancy Detection