As the number of vehicles increases day by day, accidents are also rapidly increasing. This surge in accidents poses a significant challenge for road safety authorities, necessitating innovative solutions and stricter enforcement of traffic regulations. Addressing the root causes, such as driver education and infrastructure improvements, is crucial to mitigating the escalating risks on our roads. These accidents can occur due to false estimation of nearby vehicles, disturbances in the mind of the driver, or any other reasons that prevent the driver from maintaining focus on driving. Therefore, not only is the accurate estimation of the distance to other surrounding vehicles necessary, but quick actions are also required to avoid any kind of accidents. In addition, advancements in technology, such as the integration of automated driving assistance systems, aim to enhance the precision of distance estimation and mitigate the risk of accidents caused by human errors. As the automotive industry continues to innovate, the intersection of human vigilance and technological support becomes crucial for ensuring road safety. This paper is specifically focused on preventing accidents. The system is designed to measure the distance between the driving car and the front object. If the driver fails to maintain the minimum safety distance from the front object, the system will warn the driver to slow down the speed of the car and avoid a collision. The driver will receive both visual and audio warnings to ensure that a collision does not occur. Additionally, the paper incorporates advanced sensor technologies and real-time data analysis to enhance the accuracy of distance measurements, providing a robust and reliable solution for accident prevention.