To be absolutely certain:
1. Consult a repair manual: A Chilton's or Haynes repair manual specific to your 1989 Dodge D100 with the 318 engine will have a diagram showing the exact location. This is the most reliable method.
2. Visual inspection: Look closely at the driver's side of the engine block near the distributor. The sensor will be a relatively small unit, likely with a single wire connected to it. It may have a hexagonal or similar shape for a wrench.
3. Follow the oil pressure gauge wire: If you can trace the wire from your oil pressure gauge back to its source, that will lead you directly to the sensor.
Remember to be cautious when working around hot engine components. Let the engine cool completely before attempting any inspection or repair.