location of anti knock sensor on 1998 Subaru Legacy

Hi,
facing the engine, where is the anti knock sensor located on the 2.5 liter?

Also, is there a way to test?measure resistance, etc?

Thanks, in advance.
Jon G

Get Your Car Fixed at a RepairPal Certified Shop.
We certify shops based on expertise, quality work, and verified customer reviews
1 answer 2 comments
The knock sensor is under the intake manifold right in the middle of the top of the engine. it is black about one inch in diameter about 7/16 of an inch high with a two wire black connector on it.
The knock sensor is a piezo cell that generates a voltage when it detects a knock it is tested using a oscilloscope and looking at a patten. Common Subaru fault code.
thank u
do you know where it is in a 97 honda civic