Finally, the fact that Apple has released, during the last WorldWide Developers Conference (June 2, 2014), a new API, called HomeKit, aiming at providing a set of tools to communicate with smart buildings, further increases the importance of finding new ways, as we have done in this paper, to adopt commercial and widespread technologies to solve relevant issues such as the occupancy detection problem.