An apparatus and method for detecting a magnetic field by sensing changes in the magnetoresistance is described comprising a supporting substrate or carrier such as glass, sapphire, quartz, magnesium oxide, silicon, or gallium arsenide, a first layer of ferromagnetic material formed over the substrate wherein the magnetic material is ferromagnetic and may comprise iron, cobalt, nickel, manganese o