Quantum sensing with multiple optically addressable spin defects in hexagonal boron nitride