If you have a multimeter you can measure the resistance on the sensor. If it is between 20 and 140 ohms the instrument should not show the error. You could also check the connector to the instrument.
I suspect the error on my bike is either a bad ground wire to the sensor or instrument, or...