Hi,
What is BTS, ACCU, Inverter?
To add code please click this link;
Can you please add values to your components?
What is your LOAD?
To test and calibrate it should be a LOAD that is constant and resistive.
If you are using a power inverter as a load, then the current will not be constant.
The clamp meter will be measuring average current.
Your code is measuring instantaneous current.
If you average your arduino values, what do you get.
Also in your code;
float current = sensorValue * (ShuntAmps / 1024.0);
edit to;
float current = (float)sensorValue * ShuntAmps / 1024.0;
Tom...