Hey man from what you are saying it sounds like you are looking at an O2 sensor
My Haynes manual says that only the v6 models have a knock sensor and it's located under the intake manifold. Do you have a 4cly engine or one of the v6 models? if you can scan that code again give us the code # so i can look it up on the book for you, if you want to?
you can do a diagnostics test by jumpin the TE1 and E1 terminals on the diagnostics plug that is located under the drivers side dash do that while you have they ignition swich on the ON posistion then read the number of flashes you count, the numbers will be separated. Im sure that you know this already.