i replaced camshaft position sensor , yet code 0011 came back on on 2007 Hyundai Sonata

i replace it sunday and drove the car and it was fine , my wife drove it today and check engine light came back on .

2 answers 2 comments
Usually a sensor is just what senses a problem in a certain area of the engine, does not mean the sensor itself is defective! Like this one.
Question, been servicing the engine regularly with the right type and sae oil? Yes that makes a difference.
yes every 5 thousand miles with 5 w 20 sen oil
check timing belt, had the same issue on a toyota and belt skipped a tooth, it started throwing camshaft position sensor code.
thanks i will have it changed and go from there