The knock sensor is located under the intake manifold, deep in the middle of the motor.There are 2 knock sensors.Both are under intake.
This sensors are to monitor engine and its performance.
This are costly sensors and it takes Approx 3 to 4 hours to replace the knock sensor.
See the diagram below showing location of knock sensor on Infiniti Q45

The car will not start?
Car will not crank?
Car has no spark?
How to troubleshoot car battery?
How to test starter solenoid?
http://schematicsdiagram.blogspot.com/2011/06/how-to-test-starter-solenoid.html
--------------------
How to test cars starter?
http://schematicsdiagram.blogspot.com/2011/06/how-to-test-cars-starter.html
How to replace starter in car?
http://schematicsdiagram.blogspot.com/2011/06/how-to-replace-starter-in-car.html
This sensors are to monitor engine and its performance.
This are costly sensors and it takes Approx 3 to 4 hours to replace the knock sensor.
See the diagram below showing location of knock sensor on Infiniti Q45
---------
For more car related problem troubleshooting:---
This are the sections, you can go through and click the link to read its troubleshooting.
---------
The car will not start?
-----------------
Car will not crank?
-----------
Car has no spark?
-------------
How to troubleshoot car battery?
-----------------