Theres is a easier method, if you dont want to disconnect the battery, look in the engine fuse box, youll see a white jumper fuse link, just take that out and go inside and turn on the lights so you can discharge all the stored electricity, then about 30 mins, put that jumper fuse back in and see if the check engine light remains off.