The sensor is located above the accelerator cable (from the shield side).
The sensor detects how much the driver presses the accelerator pedal. This information allows the ECU to downshift («Kick-down»).
The downshift sensor is a limit switch («on or off»). When you press the accelerator pedal all the way, the sensor contacts close (computer input shorted to «mass»).