That is why engine management systems are very important. Engine management system is Engine Control Units (ECU) which receives signals from variety of sensors, make calculations and send output signal to various functions of a vehicle to ensure efficient operations.
http://www.hiboriddhn.com/vehi....cle-control-system/e