To be certain, you should:
1. Consult your owner's manual: This is the best resource for the specific location on your truck's engine.
2. Use a repair manual: A Haynes or Chilton repair manual for your specific year and engine will have diagrams and detailed instructions.
3. Look for a small, one-wire sensor near the oil filter: The sending unit is relatively small and usually has only one wire connected.
Remember to turn off the engine and allow it to cool completely before attempting to locate or work on the oil pressure sending unit. Oil is hot and under pressure.