Old and a goodie. I was getting code 337 after cleaning manifold egr ports thoroughly, so i tried to follow the guide here and noted some discrepancy for both my '03 and '04. Regarding electrical wires and colors, my middle wire on both cars is grey/red, bottom is brwn/white and top was well i can't remember as i type. I had continuity to ground on grey/red. So following these were a little confusing, however, before replacing the sensor, i removed the egr tube, verified egr operation with vac pump, and noted is was very clean.
TIP: An easy way to remove the egr tube at the exhaust is with several extentions feeding from the driver's side fender well while looking up from under car on jackstands.
Bottom line for me, after checking all possible mechanical operation and blockage, not being able to use this thread to test electrically, i replaced the sensor.....viola....no more 337.