TRANSMISSION SPEED CONTROL SENSOR LOCATION

2000 Mazda Millenia • 11,300 miles

Where is the speed control sensor located, this would be the one for the transmission. The sensor on the far left is a pulse type sensor and not the one I believe to be the source of my problems, rough shifting, hold light blinking, and erratic shift up and down. This is the 2.5LV6 and OBDII indicates a code PO715, also codes PO400, and PO303 were present. I have purchased a new sensor a SC176 but cannot locate the old one but a dealer says it is on top of transmission very close to the engine.