A method is described to provide temperature compensation and self-calibration of a current sensor based on a plurality of magnetic field sensors positioned around a current carrying conductor. A reference magnetic field generated within the current sensor housing is detected by a separate but identical magnetic field sensor and is used to correct variations in the output signal due to temperature variations and aging.