Failing camshaft position sensor
I own a 2007 Chevy cobalt ls. A couple weeks ago the check engine light came on. The mechanics code reader said it was a camshaft position sensor. So I replaced it with a dodgey one From a wrecking yard (I know...) and it fixed it for a week. Then a couple days ago the light came on again and it was the same code. So I bought a brand new one this time and installed it. It fixed the problem for a day but today the CEL came back on. Is there a reason why it keeps failing? Is there a fuse I can check in my fuse box or is it a wiring issue? Any contributions would be great, thanks.