arduino as ammeter

For example (just an idea, needs fine tuning may be). The low offset op-amp type is just an example.
Arduino is isolated from the power lines by a separate battery. Do not connect Arduino GND and power GND together !
Op-amp's +5V and -5V comes from Arduino battery as well.