Since disconnecting the sensor did not "fix" the problem, the sensor is not the cause of the problem.
When the computer recognizes that a sensor has gone "offline", it substitutes known default values for the missing sensor data so that the engine can still run.
This process works for a variety of sensors that are not vital to the engine's operation (such as the crank sensor which is mandatory).
Steve