The check engine lights will come on (when something is wrong) and will go out when everything is OK again.
The car's compu will remember the faults and the dealer when necessary can read them. Just connect the sensor and if everything is OK, the light has to go out again.
No need to disconnect the battery...
with a minor 600+k