The invention provides an optical sensor, e.g a fibre optic sensor, for determining the presence or amount of an analyte in a medium, the sensor having an indicator provided in the form of a fluid. In one aspect, the sensor contains either a solution of the indicator itself, or a solution of a support material which is bonded to the indicator. Dendrimers are examples of suitable support materials.Linvention concerne un capteur optique, notamment un capteur à fibre optique, permettant détablir la présence ou la quantité dun analyte dans un milieu, le capteur étant doté dun indicateur se présentant sous la forme dun fluide. Selon un aspect, le capteur contient soit une solution de lindicateur proprement dit, soit une solution dune substance support fixée à lindicateur. Les dendrimères constituent des exemples de substances supports adaptées.