All modern vehicles on the road today has a 'brain' which is your ECU (engin control Unit). Sensors acorss your vehicle measuring various parameters, from your engines temperature to your vehicles exhaust gasses, to how far your accelerator pedal is pressed in.