WHERE IS THE OIL PRESSURE SWITCH SENSOR LOCATED on 2002 GMC Envoy

WHEN DRIVING THE OIL PRESSURE WARNING COME ON AND THE GAGE GOES TO 0

2 answers
next to the oil filter.
should be back of motor