Detonation sensor:

A sensor, which is often piezoelectric, mounted near the cylinders which can detect engine knocking or frequencies of detonation so as to send a message to the ECU to retard the ignition timing to prevent damage to the engine.