Crystal defects in diamond have emerged as unique objects for a variety of applications, both because they are very stable and because they have interesting optical properties. Embedded in nanocrystals, they can serve, for example, as robust single-photon sources or as fluorescent biomarkers of unlimited photostability and low cytotoxicity. The most fascinating aspect, however, is the ability of some crystal defects, most prominently the nitrogen-vacancy (NV) center, to locally detect and measure a number of physical quantities, such as magnetic and electric fields. This metrology capacity is based on the quantum mechanical interactions of the defect's spin state. In this review, we introduce the new and rapidly evolving field of nanoscale sensing based on single NV centers in diamond. We give a concise overview of the basic properties of diamond, from synthesis to electronic and magnetic properties of embedded NV centers. We describe in detail how single NV centers can be harnessed for nanoscale sensing, including the physical quantities that may be detected, expected sensitivities, and the most common measurement protocols. We conclude by highlighting a number of the diverse and exciting applications that may be enabled by these novel sensors, ranging from measurements of ion concentrations and membrane potentials to nanoscale thermometry and single-spin nuclear magnetic resonance.
We investigate spin and optical properties of individual nitrogen vacancy centers located within 1\char21{}10 nm from the diamond surface. We observe stable defects with a characteristic optically detected magnetic-resonance spectrum down to the lowest depth. We also find a small but systematic spectral broadening for defects shallower than about 2 nm. This broadening is consistent with the presence of a surface paramagnetic impurity layer [Tisler et al., ACS Nano 3, 1959 (2009)] largely decoupled by motional averaging. The observation of stable and well-behaved defects very close to the surface is critical for single-spin sensors and devices requiring nanometer proximity to the target.