Measurement of activities of daily living: A simulation tool for the optimisation of a passive infrared sensor network in a smart home environment