An apparatus for detecting vital functions has a pulse wave sensor attachable to a body and a control unit. The control unit checks if amplitude of pulse wave signals produced from the pulse wave sensor varies. The control unit further checks if a large change in the amplitude during a systolic phase of a pulse wave corresponding to the systolic phase of the heart. If a first large change in the amplitude during a diastolic phase of a pulse wave corresponding to the diastolic phase of the heart, it is highly probable that a motion artifact has occurred. Therefore, a motion artifact flag is set. Next, it is checked if the amplitude in the next diastole is changing by more than 30%. if it is presumed that the occurrence of cough is highly probable, a cough flag is set. if it is neither the motion artifact nor the cough, then a yawn flag is set.