Knock Sensor (KS)
WARNING: This page is about a different car, the 2010 Mercury Mariner and 2010 Ford Escape. However, it is still accessible from the selected car via links, so may be relevant.
The KS is a tuned accelerometer on the engine which converts engine vibration to an electrical signal. The PCM uses this signal to determine the presence of engine knock and to retard spark timing.