Data from sensors in patients’ homes will be analysed to warn of health problems.