well in the second pic it is the easiest to c. well if ur looking at the pic and u c the red hose (not the air one) go all the way the the left of it and it is right above it. it has the plug going into it and has two tubes on it aswell.
The 2nd pic is the DPFE sensor.which is mounted on the Throttle Body. In pic #1 directly to the right of the throttle linkage cover ( the red square looking box) id the EGR valve and on the top is a vacuum line into the top of it.
I have the same issue! Talked with AutoZone and they showed me pic of each. Attached are what they look like. I found the valve on the engine, but not the sensor. The cropped pic looks to be the sensor. Thanks all!
2001 Red Ford Ranger 3.0 V6
San Antonio, Texas