The aim of Lab-on-a-chip systems is the downscaling of analytical protocols into microfluidic devices, including optical measurements. In this context, the growing interest of the scientific community in opto-microfluidic devices has fueled the development of new materials. Recently, lithium niobate has been presented as a promising material for this scope, thanks to its remarkable optical and physicochemical properties. Here, we present a novel microfluidic device realized starting from a lithium niobate crystal, combining engraved microfluidic channels with integrated and self-aligned optical waveguides. Notably, the proposed microfabrication strategy does not compromise the optical coupling between the waveguides and the microchannel, allowing one to measure the transmitted light through the liquid flowing in the channel. In addition, the device shows a high versatility in terms of the optical properties of the light source, such as wavelength and polarization. Finally, the developed opto-microfluidic system is successfully validated as a probe for real-time pH monitoring of the liquid flowing inside the microchannel, showing a high integrability and fast response.