5.3 liter? If so under the intake. To test you need a DVOM set on the AC voltage scale. Put the red wire on the knock sensor and the black wire on ground. Tap/ hit the engine block with a metal hammer as close to the sensor as you can. If the sensor is working it will generate AC voltage the harder the knock the higher the voltage.
ASE Master Tech, L1 Advance Engine Performance certified
I will not answer repair questions by PM, if you would like my input you can PM me and ask me to reply to your public thread.