Sensing external spins with nitrogen-vacancy diamond