High side current measurements

and the Arduino is powered by a separate supply (preferably transformer isolated),

So you would need a power supply that is rated for 4KV isolation. That is way above the normal isolation rating of power supplies, even ones using transformers.