I had my 2005 Hyundai Elantra inspected today. It passed the safety but failed the emission test. The inspector told me to replace the battery even though I dont find trouble in starting the engine at the first shot itself? He also told if I drive some 40 miles, it would be sometimes ok. The error message said "O2 sensor - Not Ready" and Evaporator - Not Ready" why is that so? If I charge the battery over night from Walmart and take for the inspection next day, will the car pass emission??