The procedure for implementing a refractive index sensor for terahertz frequencies based on a grooved parallel-plate waveguide geometry is described here. The method yields a measurement of the refractive index of a small volume of liquid through monitoring of the shift in the resonant frequency of the waveguide structure