WARNING: This page is about a different car, the 2007 Mazda MX-5 Miata. However, it is still accessible from the selected car via links, so may be relevant.
Disconnect the PCM connector.
Inspect the following wiring harnesses for an open or short circuit. (Continuity inspection)
Fig 1: Identifying Knock Sensor Harness Side Connector