I am using a hall effect current sensor. Its part number is ACS781LLRTR-050B-T from Allegro MicroSystems. In my circuit, I'm reading its output voltage to calculate current with MCU.
With no load, I read output voltage of current sensor as 2215 mV and use this value as zero current value. When the load is connected, it draws 2.3 A which means the output voltage of the current sensor must be 2286 mV, because the sensitivity of the sensor is 26.4 mV/A. However, in the MCU the voltage read is 2331 mV, which is higher than the expected 2286 mV.
What is the problem? What might be the solution?