Check engine light was on due to the fact that the air intake pipe was not clamped to the intake on the engine. It was an aftermarket stainless pipe and was all rigged up! I got the factory air box at the salvage yard and installed it. I think the light was on due to the fact that the air being sucked into the car was no going through the mass air flow sensor. After fixing this I disconnected the battery to clear the light and since then I have put 150 miles on the car and while getting it inspected i had to get an emissions test. It will not pass emissions due to the fact that the code for the evap and catalytic converter have not been set? How long does it take to get a good reading on the obd2?