This senior project aim to detect eyes open or close . If the eyes are closed or opened longer than prescribed .The program will alert to waking up from sleep.In fact, on the road,we could not determine the exact time Whether peoples how long to sleep to be called opiates. the program is designed to give your chosen the time on you need. Whether it is time to alert when symptoms closed eyes or eyes open to long. From the experiments, we found that light is the main factor to program precision. The program is the most accurate in the light 300 lux