Kai Okrafka, mechanical engineer, describes the magnetic field sensor and its testing tube. A coil of wire with electricity flowing through it is used to create a magnetic field that can be changed to test the magnetic field sensor. This wire and the sensor go inside the testing tube, which blocks Earth’s magnetic field.