If you need to measure current, use an Allegro Hall-effect sensor. Isolated, accurate, high-output.