The realization of an efficient optical sensor based on a photonic crystal metasurface supporting bound states in the continuum is reported. Liquids with different refractive indices, ranging from 1.4000 to 1.4480, are infiltrated in a microfluidic c