Crank shaft sensor and knock sensor codes issues
Was on the way to work yesterday with the windows down, I hit a long light so I decided to roll up the windows and turn on the ac. Was sitting for about 2 mins and car just decided to die out of no where. I tried to start it up and it seem like it didnt want to start. Once it finally started check engine light popped up with the esp off light on. It was idling weird and seemed like it had no power. I pulled off the side of the road and turned it off, I pulled my scanner out and it said it was the crankshaft position sensor. Popped the hood and tried checked but could see the sensor. Cleared the codes and tried to start it again and still had a hard time starting. Still idling weird. Turned it off again let it sit for a min trying to figure what the issue was. Just decided to clear the codes once more and try to start it again. Started right up no hesitation. Reved it a couple times, no issues. Get on the freeway and 10 miles later it like down shifted or something and check engine light came on again. Only this time it was knock control system error. The car would backfire around 50 when I would let off the gas and normally it does it around 80-70 but not as loud. I got to work and had it towed home. Next morning I started the car to move it so I couldtake a look to see if i could see anything. It started right up no issues, the check engine light was gone, my esp was working. So I decided to drive the car with the ac on and probably 15 mins into driving it did the samething like down shifted, light came on for check engine and esp and had no power when stepping on the gas.