A method includes passing a magnetometer along a length of a material. The method also includes measuring, via the magnetometer, a first magnetic field magnitude along a first portion of the length of the material and measuring, via the magnetometer, a second magnetic field magnitude along a second portion of the length of material. The method further includes determining that the material includes a defect along the second portion of the length of material by determining that the first magnetic field magnitude is different than the second magnetic field magnitude.