I ran into a similar issue on by buddies CJ5. it kept getting a knock sensor code less than a minute after cranking it up. I could find nothing wrong with the wiring and we replaced the sensor twice. I ended up disabling the code. the funny thing it still registered knock counts and would retard the timing if we gave it too much so we said the hell with it and left it disabled.
Bookmarks