Front sensor working with crash prevention