I have a check engine light on. I have replaced the air pump. on 2006 Chevrolet Cobalt

When the air pump is pulled off it has water in it. The check engine light will go off but comes right back on shortly after being on the road again. The air pump is tested and works well intermediately, but it's new and has only been on the vehicle a few months. Frustrated, what do I do? I need a smog cert and am having no luck.

Asked by for the 2006 Chevrolet Cobalt
Code number?