Apparatus and methods are provided including sensing at least one parameter of a subject while the subject sleeps. The parameter is analyzed, and a condition of the subject is determined at least in part responsively to the analysis. The subject is alerted to the condition only after the subject awakes. Other applications are also described.