This paper presents an investigation on using sol-gel thin film as a material for sensors application in LTCC (Low Temperature Co-fired Ceramics) technology. This material gives the opportunity to make new, low-cost highly integrated optoelectronic devices. Sensors with optical detection are a significant part of these applications. They can be used for quick and safe diagnostics of some parameters. Authors present a pH detector with the optical detection system made of the LTCC material. The main part of the device is a flow channel with the chamber and sol-gel active material. The silica sol-gel with bromocresol green indicator was used. As the absorbance of sol-gel layer changes with the pH value of a measured medium, the transmitted light power was measured. The pH detector was integrated with the electronic components on the LTCC substrate.