Using different sensors the speed of the vehicle is analysed and the brake is applied automatically. Here we define two terms: Traffic detection and overtaking priority. By overcoming these two objectives the vehicle for different conditions can be designed and the automation in driving can be applied and IoT can be interfaced to analyse and to monitor the traffic and the car's location. This idea was implemented in a small range by TESLA cars and there are some lags in those conventional design. Thus by implementing this technology the safety of the vehicles and passengers is ensured.