B0299 OBD2 reports a sensor fault, replacement of the sensor is unlikely to resolve the underlying problem. The fault is most likely to be caused by the systems that the sensor is monitoring, but might even be caused by the wiring to the sensor itself.
If your B0299 check engine light is illuminated, it's best to take it in for diagnostic testing, which can feel like a hassle. Because while the lights vary in appearance from vehicle to vehicle, all have the same basic meaning: There's a problem with the car's emissions system. The on-board diagnostics system and engine control unit are in charge of monitoring a bunch of different, and if they get a reading that's a little out of whack, up pops the check engine light.
Remove the air filter box assembly so you can access the transmission range switch. Turn the key to the ON position, but do not start the vehicle. Move the shifter to the neutral position. Align the alignment holes between the switch and the shift lever. Insert a 5mm drill bit into the adjustment hole to verify the proper alignment for the neutral position.
Vehicle Speed Sensor (VSS) Out of Self Test Range Indicates the VSS input signal is out of Self Test range. If the PCM detects a VSS input signal any time during Self Test, a DTC P1501 will be set and the test will abort. Noisy VSS input signal from Radio Frequency Interference/ Electro-Magnetic Interference (RFI/EMI) external sources such as ignition wires, charging circuit or after market equipment. Check for VSS input to be 0 mph when vehicle transmission is in Park.