Security while traveling is a primary concern for everyone. The purpose of this paper is to find a solution to reduce the annual occurrence of road traffic accidents, which are one of the main causes of death. Designing vehicles with sensors based on microcontrollers could be a solution to achieve this goal. These sensors are made up of tiny devices that work in such a way as to determine the parameters of the vehicle. The ultrasonic sensors will be able to help the driver to drive the vehicle in foggy conditions and prevent frontal collision with the last moment emergency braking system. The vibration detector is used to detect the annoying vibrations of the vehicle. For example, if the vehicle suspension is loose and needs maintenance, it is detected by the vibration sensor. The overheating of electric vehicle motors and batteries causes them to ignite, so flame sensors are also used, and these signals are sent to the microcontroller, which analyses the signals and generates message signals accordingly. If any accident occurs, the vibration detector and the ADXL collision detector will detect the accident and send a signal to the microcontroller. The microcontroller will get the location of the vehicle via NEO 6M Global Positioning System (GPS) and automatically send the message signal via SIM 900A General Packet Radio Services (GPRS) cellular communication system to the nearest police station and hospital for ambulance service. This system not only tries to prevent traffic accidents but also helps to get treatment facilities as quickly as possible. This function can be implemented in any type of vehicle.