This document describes a system to prevent vehicle accidents and detect accidents using IoT. It has two main parts: 1) an auto-braking system that senses the distance to obstacles and automatically applies the brakes if the vehicle gets too close, and 2) an accident detection system that uses a piezoelectric sensor and GPS to communicate with nearby hospitals if a collision occurs. The system is designed to reduce accident impacts and response times by automatically slowing vehicles and alerting emergency services. It works by monitoring distances using ultrasonic sensors, applying variable braking levels depending on distance, and triggering emergency brakes below 4 meters to stop the vehicle.