This paper proposed a smart alarm system based on sleep hypnagogia phase. Hypnagogia phase is an almost wakeful phase or mild sleep state. Waking up in this phase causes people to feel refreshed. This phase is indicated by sudden body movements during sleep or changes in position during sleep. This phase can be detected automatically by a Passive Infrared (PIR) Sensor. In this paper smart alarm...