Biocompatible technique for nanoscale magnetic field sensing with Nitrogen-Vacancy centers