To find it definitively:
1. Consult your car's repair manual: This is the most reliable source. The manual will have diagrams and specific instructions.
2. Look at online diagrams: Search for "[Year] Pontiac Grand Prix 3.1L engine diagram" and look for images showing the coolant sensor. Many repair sites have detailed diagrams.
3. Visual inspection: Once you've located the thermostat housing (usually on the top or side of the engine block), carefully examine the surrounding area for a sensor with a single or dual wire connector. The sensor itself is typically a relatively small cylindrical component.
Caution: Be careful when working near hot engine components. Allow the engine to cool completely before attempting any inspection or repair work.