We remove the knock sensor for replacement and when repairing the engine.
With the ignition off..
... by pressing the lock of the engine management wiring harness block..
... disconnect the wiring harness block from the knock sensor.
With the "12" head, we unscrew the bolt securing the sensor to the cylinder block..
... and remove the sensor.
Before installing the sensor, we clean the tide of the cylinder block under the knock sensor.
Install the knock sensor in reverse order.
Tighten the knock sensor mounting bolt to the prescribed torque (see Applications).