There's something new with this change in the function using "return abs(A);"
Also i moved from pin A10 to A7, i had doubt on this A10 pin which seems out or badly soldered.
Now when i switch on and off the relays amps are increasing and decreasing so it is responding correctly now.
But OCS is displaying very small values going from 0.1 A to 0.5 A max, it should be higher.
I changed the code moving back the function with "return A;" but the values were the same but negatives
I'm going to check again if the ACS is a 20 Amp model and also have a look on the wiring