What causes engine light to go off after replacing with new one?

Responsive image
source