The knock sensor is a specialised microphone which "listens" for the engine knocking or pinking - hopefully hearing it before you do.
The ECU adjusts the ignition timing, advancing it until the onset of pinking is detected and then backing it off a bit. This adjustment is done frequently (maybe continuously - not sure of the exact details of Trionic) so that changes in fuel grade are accommodated quickly.
If it is all working properly then you won't hear any knocking from the engine.