1 Diamonds can detect magnetic fields when defects like nitrogen-vacancy centers trap unpaired electrons.
“Now, a pure diamond is just an ordered lattice of carbon atoms, so it doesn't react to magnetic fields in a meaningful way. But this changes when you start adding defects to the lattice. You can replace one of the carbon atoms in the lattice with, say, a nitrogen. And if you remove one of the carbons next to it completely, well, that creates a vacancy. This defect is called a nitrogen vacancy or an NV center.”