I would suspect either the wiring or the sensor. In particular check the earth connection to the engine block is not corroded or loose. The other main failure point would be any connectors in the wire from the sensor to the EMS. You do not say what sort of sensor is used in your system but I...