Monitoring device helps patients with heart failure