The advantages of the sol-gel technology are undoubtedly simplicity and versatility. It enables to obtain for example oxides in the form of layers, powders, monoliths or fibers. These materials can be successfully applied for sensing purposes due to their properties such as transparency, porosity, and high surface areas. In this article, the basis of operation of mainly optical and semiconductor sensors are presented. A brief overview of various kinds of sensors is submitted. The utility of optical fibers and planar waveguides in these systems is discussed. The paper contains also some results obtained by the authors in the field of thin film-based sensors.