A current sensor device (100; 200; 300; 400; 500; 800) for measuring a current, comprising: - a leadframe comprising a first portion comprising first leads (101, 201, 301, 401, 501; 810) connected or shaped so as to form an electrical conductor adapted to carry the current to be measured, and a second portion comprising a plurality of second leads (102, 202, 302, 402, 502; 802); - a first magnetic sensor (111, 211, 311, 411, 511; 811) and a second magnetic sensor (112, 212, 312, 412, 512; 812); - a substrate (110; 210; 310; 410; 510; 810) comprising or connected to at least the first magnetic sensor (111, 211, 311, 411, 511; 811) and comprising or connected to the second magnetic sensor (112, 212, 312, 412, 512; 812) the first and second magnetic sensor forming a first magnetic sensor pair; - wherein the first magnetic sensor has a first axis of maximum sensitivity, and the second magnetic sensor has a second axis of maximum sensitivity parallel to the first axis; - wherein the first magnetic sensor is located at a first location and is configured for providing a first value indicative of a first magnetic field component (Blx, B1z) at said first location; - wherein the second magnetic sensor is located at a second location and is configured for providing a second value indicative of a second magnetic field component (B2x, B2z) at said second location; - wherein a magnetic field induced by the current to be measured, when flowing through the electrical conductor, defines a first magnetic field vector at the first sensor location, and defines a second magnetic field vector at the second sensor location, the first magnetic field vector and the second magnetic field vector defining crossing or intersecting lines; - a processing circuit (610; 710) connected to the first and second magnetic sensor, and adapted for determining the current to be measured at least based on a difference or weighted difference between the first value and the second value obtained from the first sensor pair; characterised in that - the first and second sensor location are situated such that a virtual line through the first sensor location and perpendicular to the substrate (110; 210; 310; 410; 510; 810) does not intersect the electrical conductor, and a virtual line through the second sensor location and perpendicular to the substrate intersects the electrical conductor (103; 203; 303; 403; 503; 803). - a leadframe comprising a first portion comprising first leads (101, 201, 301, 401, 501; 810) connected or shaped so as to form an electrical conductor adapted to carry the current to be measured, and a second portion comprising a plurality of second leads (102, 202, 302, 402, 502; 802); - a first magnetic sensor (111, 211, 311, 411, 511; 811) and a second magnetic sensor (112, 212, 312, 412, 512; 812); - a substrate (110; 210; 310; 410; 510; 810) comprising or connected to at least the first magnetic sensor (111, 211, 311, 411, 511; 811) and comprising or connected to the second magnetic sensor (112, 212, 312, 412, 512; 812) the first and second magnetic sensor forming a first magnetic sensor pair; - wherein the first magnetic sensor has a first axis of maximum sensitivity, and the second magnetic sensor has a second axis of maximum sensitivity parallel to the first axis; - wherein the first magnetic sensor is located at a first location and is configured for providing a first value indicative of a first magnetic field component (Blx, B1z) at said first location; - wherein the second magnetic sensor is located at a second location and is configured for providing a second value indicative of a second magnetic field component (B2x, B2z) at said second location; - wherein a magnetic field induced by the current to be measured, when flowing through the electrical conductor, defines a first magnetic field vector at the first sensor location, and defines a second magnetic field vector at the second sensor location, the first magnetic field vector and the second magnetic field vector defining crossing or intersecting lines; - a processing circuit (610; 710) connected to the first and second magnetic sensor, and adapted for determining the current to be measured at least based on a difference or weighted difference between the first value and the second value obtained from the first sensor pair; - the first and second sensor location are situated such that a virtual line through the first sensor location and perpendicular to the substrate (110; 210; 310; 410; 510; 810) does not intersect the electrical conductor, and a virtual line through the second sensor location and perpendicular to the substrate intersects the electrical conductor (103; 203; 303; 403; 503; 803).