Voltage measurement on Analog PIN

Are you powering the ACS712 from the 5volt pin of the Arduino?

Which Arduino.

3.98volt out makes me think you're using a 3.3volt Arduino (with 3.3volt default Aref).

Your German post mentions an ESP8266.
Leo..