This work explores the use of ZIF-8, a metal–organic framework (MOF) material, for its use in the optical detection of volatile organic compounds (VOCs) in Fabry–Pérot and surface plasmon resonance (SPR)-based sensors. The experiments have been carried out with ethanol (EtOH) and show response times as low as 30 s under VOC-saturated atmospheres, and the estimated limit of detection is below 4000 ppm for both sensor types. The selectivity towards other VOCs is relatively poor, although the dynamics of adsorption/desorption differ for each VOC and could be used for selectivity purposes. Furthermore, the hydrophobicity of ZIF-8 has been confirmed and the fabricated sensors are insensitive to this compound, which is a very attractive result for its practical use in gas sensing devices.