The bed's smart monitoring alerted the man to a life-threatening heart condition, according to his doctor.