Detecting tiny magnetic fields with diamond sensors