The knock sensor is located on the engine block, cylinder head or intake manifold. This is because its function is to sense vibrations caused by engine knock or detonation. The PCM uses this signal to alter the ignition timing and prevent detonation.