A novel approach to the production of biospecific, optical-fiber sensors is described which is based on a dynamic modification procedure. The fiber surface is first modified with a hydrophobic layer, and the specified agent is then associated with this surface through either its inherent or designed hydrophobicity. With this procedure, riboflavin, modified at the N-3 position with a C-8 moiety, is dynamically associated with a C-18 modified optical fiber surface. The dynamically modified sensor responds to riboflavin binding protein which quenches riboflavin fluorescence upon binding. By washing in an appropriate solvent, the modified riboflavin can be removed, and the sensing surface can be reproducibly renewed.