OBD-II Code Transmission may not shift properly is defined as a Transmission Fluid Pressure Sensor/Switch "C" Circuit
The Transmission Fluid Pressure Sensor tells the Transmission control module (TCM) the pressure of the fluid going through the transmission. When the TCM detects an incorrect signal from the Transmission Pressure Sensor, it sends a signal to the engine control module (PCM) to set code P0871.