previous datapoint added for occupancy and motion