A 3D-imaging sensor tracks in-room activity in real time, such as when a patient is in or out of bed, indicating mobility, time at rest and other patterns across any defined period, and, the most important, instantly detect falls and alert the caregiver to get immediate attention.