To prevent accidents caused by drowsiness, we can use a device called an eye blink sensor that uses infrared (IR) rays. This sensor consists of two parts: an IR transmitter and an IR receiver. The transmitter emits IR rays towards the driver's eye. when the eye is closed, the sensor outputs a high signal, and when the eye is open, the output is low. This output is connected to an alarm system both inside and outside the vehicle. Inside the vehicle, an alarm will sound if the driver's eyes remain closed for too long, alerting them to the potential danger. The alarm will continue until the driver regains consciousness and takes control of the vehicle. If the driver is still unable to respond after a certain period of time, the alarm outside the vehicle will activate to alert others nearby and encourage them to assist the driver. In addition, this eye blink sensor can also be linked to the vehicle's braking system, allowing it to automatically reduce the vehicle's speed when drowsiness is detected, further enhancing safety measures.