Where is the egr valve position sensor on 1998 Mazda Protege?

The egr position sensor is made into the egr valve. Look for the egr valve and you will find a plug with wires plugged into the egr valve. These wires are for the position sensor and they go back to the ecm ( engine control monitor)< computer> James= 15 year Mazda tech just a tip= with engine COLD,reach under valve and press on plunger and see if it moves freely(not easy) but freely. Hope this helps.