If you are asking for the Nissan VG33E, 3.3L, V6 engine (used in Frontier, Xterra, Pathfinder, Infiniti, Quest, and 99-02 Mercury Villager) then the knock sensor is located on top of the engine block. It sits on top toward the rear of the engine block , roughly 2/3 from the front of engine, between the #3 and #5 intake openings (right side or passenger side cylinder head). The only way to access it is by removing the intake collector (big Nissan name on top) and intake manifold. You will need at least 3 gaskets from Nissan (roughly $30); one to seal the intake collector with the intake manifold and two for each of the cylinder head set of intakes (#1, #3, & #5 on the right, and #2, #4, & #6 on the left). Do not use aftermarket ones. Nissan use plenum gaskets (made of metal) and aftermarket ones are pressed paper. Cost of factory Nissan gaskets is about the same as the aftermarket ones. Do it right the first time as the whole job takes about a day, including clearing the OBD code (P0301, I think). I have pictures available but just can't add it here.
On or near the engine . The engine is located under the hood.
The 2001 Nissan Frontier coolant temperature sensor is located on the front of the engine. The sensor will be a few inches above the thermostat housing.
The 2008 Nissan Frontier has an inline 4 engine.
The 2003 Nissan Frontier has an inline 4 engine.
The 2002 Nissan Frontier has an inline 4 engine.
The 2007 Nissan Frontier has an inline 4 engine.
The 2004 Nissan Frontier has an inline 4 engine.
The 2010 Nissan Frontier has an inline 4 engine.
The 2012 Nissan Frontier has an inline 4 engine.
The 2013 Nissan Frontier has an inline 4 engine.
The 2009 Nissan Frontier has an inline 4 engine.
The 2014 Nissan Frontier has an inline 4 engine.