This sensor you are referring to here sounds like the MAF and has nothing to do with the ESP light. The MAF measures the air flow into the engine. The ESP is the electronic stability programme. The engine light can come on if the MAF is faulty.Oh also this might be worth a quick check, there is a sensor on the back of the hose that connects to the air box ( I think that?s what it's called) if this is dirty or not connected properly it can cause the ESP light to come on and the engine check light. I didn't clip it back in place properly after changing the coil pack.