I'd be careful modifying as folks have shown. Knock sensor retards the timing to prevent internal engine damage from pre-ignition. Making a change to location or laying in the bilge means you no longer have this protection for the engine.
In the old days, it wasn't uncommon for engine "pinging" to damage an engine if not addresse. Had a old neighbor that ran cheap gas in his mid 70s car and would hear it pinging all the way up the hill to his house. Told him he better run a higher octane gas but was too cheap to spend the $. Engine went ~ 2 years before it failed