Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
POLYMER MATRIX FOR CO2 SENSING
Document Type and Number:
WIPO Patent Application WO/2021/181088
Kind Code:
A1
Abstract:
The invention relates to a polymer matrix for optical sensing of carbon dioxide, and a process for producing the polymer matrix. Also discussed is an optical sensor for optical sensing of carbon dioxide comprising the polymer matrix of the invention, and a method for making the optical sensor. The invention further provides a method of measuring the carbon dioxide content of a sample, using the sensor of the invention. The optical sensor is useful in measuring the carbon dioxide content of biological samples such as blood. The polymer matrix comprises a fluorophore, a positively charged counter-ion moiety and a polymeric support, wherein either the fluorophore or the counter-ion moiety is covalently bound to the polymeric support by a polymer linking moiety.

Inventors:
BARWELL NICHOLAS PAUL (GB)
CRANE BARRY COLIN (GB)
Application Number:
PCT/GB2021/050588
Publication Date:
September 16, 2021
Filing Date:
March 10, 2021
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
SCILOGICA CORP (US)
SCILOGICA LTD (GB)
International Classes:
G01N33/84
Foreign References:
US20050090014A12005-04-28
US20080188722A12008-08-07
Other References:
XUDONG GE ET AL: "High-stability non-invasive autoclavable naked optical CO2 sensor", BIOSENSORS AND BIOELECTRONICS, vol. 18, no. 7, 1 July 2003 (2003-07-01), AMSTERDAM, NL, pages 857 - 865, XP055721667, ISSN: 0956-5663, DOI: 10.1016/S0956-5663(02)00159-8
ZHU ET AL: "A new ratiometric, planar fluorosensor for measuring high resolution, two-dimensional pCO"2 distributions in marine sediments", MARINE CHEMISTRY, ELSEVIER SCIENCE B.V., AMSTERDAM, NL, vol. 101, no. 1-2, 7 September 2006 (2006-09-07), pages 40 - 53, XP005457953, ISSN: 0304-4203
EKATERINA V SKORB ET AL: "Layer-by-Layer Approach for Design of Chemical Sensors and Biosensors", CURRENT ORGANIC CHEMISTRY, 1 June 2015 (2015-06-01), pages 1097 - 1116, XP055718870, Retrieved from the Internet [retrieved on 20200729]
GE ET AL., BIOSENSORS & BIOELECTRONICS, vol. 18, 2003, pages 857 - 865
CHU ET AL., PHOTONIC SENSORS, vol. 1, no. 3, 2011, pages 234 - 250
Attorney, Agent or Firm:
J A KEMP LLP (GB)
Download PDF:
Claims:
CLAIMS 1. A polymer matrix for optical sensing of CO2, comprising a fluorophore, a positively charged counter-ion moiety and a polymeric support, wherein either the fluorophore or the counter-ion moiety is covalently bound to the polymeric support by a polymer linking moiety. 2. The polymer matrix according to claim 1 wherein the molar ratio of counter-ion to fluorophore is 2:1 or greater. 3. The polymer matrix according to claim 1 or 2 wherein the fluorophore comprises a negatively-charged moiety, preferably an –O- group or a –COO- group, at near-neutral pH. 4. The polymer matrix according to any preceding claim, wherein whichever of the fluorophore or the counter-ion moiety is not covalently bound to the polymeric support by a polymer linking moiety is suspended in the polymeric support. 5. The polymer matrix according to any preceding claim, wherein the fluorophore has a pH-dependent fluorescent emission spectrum. 6. The polymer matrix according to any preceding claim wherein the fluorophore can undergo fluorescence emission at a first wavelength λ1 with an intensity I1, and can undergo fluorescence emission at a second wavelength λ2 with an intensity I2, and the ratio of I1 to I2 varies dependent upon pH. 7. The polymer matrix according to any preceding claim wherein the fluorophore comprises a species of formula (Fl-A):

wherein each R group is independently selected from H, halogen, cyano, nitro, hydroxy, C1-10 alkyl, C3-10 cycloalkyl, C4-10 cycloalkenyl, aryl, alkylaryl, heteroaryl, heterocycloalkyl, C2-10 alkenyl, C2-10 alkynyl, -SRa, -ORa, -SO2Ra, -SO3-, -SORa, - SO2NRa, -S(O)(NRa)Ra, -NRa2, -NRaCORa, -NRaCO2Ra, -CORa, -CO2Ra, -CONRa2, or a covalent bond attaching the fluorophore to the polymer linking moiety; or two neighbouring R groups are joined together to form a carbocyclic or heterocyclic ring; each Ra group being independently selected from H, C1-10 alkyl, C3-10 cycloalkyl, C4-10 cycloalkenyl, aryl, arylalkyl, heteroaryl, heterocycloalkyl, C2-10 alkenyl, and C2-10 alkynyl; and any R group capable of substitution may be optionally substituted by one or more substituents independently selected from halogen, oxo, cyano, nitro, hydroxy, C1-10 alkyl, C3-10 cycloalkyl, C4-10 cycloalkenyl, C2-10 alkenyl, C2-10 alkynyl, -ORb, - NRb2, -CORb, -CO2Rb, and -CONRb2, wherein Rb is selected from H, C1-6 alkyl, C3-6 cycloalkyl, C4-6 cycloalkenyl, and C2-6 alkenyl. 8. The polymer matrix according to any preceding claim wherein the fluorophore comprises a species of formula (Fl-B)

wherein each R1 group is independently selected from halogen, cyano, nitro, hydroxy, -ORa, -SO2Ra, -SO3-, -SORa, -SO2NRa, -S(O)(NRa)Ra, -NRa2, -NRaCORa, - NRaCO2Ra, -CORa, -CO2Ra, -CONRa2 and a covalent bond to the polymer linking moiety; each R2 group is independently selected from H, C1-10 alkyl, C3-10 cycloalkyl, C4-10 cycloalkenyl, aryl, alkylaryl, heteroaryl, heterocycloalkyl, C2-10 alkenyl, C2-10 alkynyl, and a covalent bond to the polymer linking moiety; any R1 or R2 group which is capable of substitution may be optionally substituted by one or more substituents independently selected from halogen, oxo, cyano, nitro, hydroxy, C1-10 alkyl, C3-10 cycloalkyl, C4-10 cycloalkenyl, C2-10 alkenyl, C2-10 alkynyl, -ORb, -NRb2, -CORb, -CO2Rb, and -CONRb2; and Ra and Rb are as defined in claim 7. 9. The polymer matrix according to any preceding claim wherein the fluorophore is pyranine, or a derivative thereof. 10. The polymer matrix according to any preceding claim wherein the counter-ion moiety comprises a quaternary ammonium ion. 11. The polymer matrix according to any preceding claim wherein the counter-ion moiety comprises a quaternary ammonium cation of formula (CI-A): wherein each R4 group is independently selected from H; or C1-30 alkyl, C3-12 cycloalkyl, C4-12 cycloalkenyl, aryl, alkylaryl, heteroaryl, heterocycloalkyl, C2-30 alkenyl, C2-30 alkynyl, and a covalent bond to the polymer linking moiety; or two R4 groups may be joined together to form a C3-16 heterocycloalkyl or a C4-16 heterocycloalkenyl group; and any R4 group capable of substitution may be optionally substituted by one or more substituents independently selected from halogen, oxo, cyano, nitro, hydroxy, C1-10 alkyl, C3-10 cycloalkyl, C4-10 cycloalkenyl, C2-10 alkenyl, C2-10 alkynyl, -ORb, - NRb 2, -CORb, and -CO2Rb, wherein Rb is as defined in claim 7. 12. The polymer matrix according to any preceding claim wherein the counter-ion moiety is a hexadecyltrimethylammonium ion or a derivative thereof. 13. The polymer matrix according to any preceding claim wherein the polymeric support is gas-permeable. 14. The polymer matrix according to any preceding claim wherein the polymeric support comprises a hydrophilic polymer, preferably wherein the polymeric support comprises one or more of a hydrogel, a cellulose derivative, ethyl cellulose, a sol-gel, or a hydrophilic silicone-based polymer; preferably a hydrogel selected from polyacrylamide or polyhydroxyethyl methacrylate. 15. The polymer matrix according to any one of claims 1 to 13 wherein the polymeric support comprises a hydrophobic polymer. 16. The polymer matrix according to claim 15 wherein the polymeric support comprises one or more of polystyrene, a hydrophobic silicone-based polymer, a hydrophobic cellulose derivative, or plasticised ethyl cellulose.

17. The polymer matrix according to claim 15 or 16 wherein the polymeric support is hydrophobic. 18. The polymer matrix according to any preceding claim wherein the polymer linking moiety comprises one or more of a covalent bond, -O-, -S-, -SO2-, -SO-, an optionally substituted alkylene, an optionally substituted alkenylene, an optionally substituted alkynylene, and –NR5; R5 is selected from H, C1-10 alkyl, C3-10 cycloalkyl, C4-10 cycloalkenyl, aryl, arylalkyl, heteroaryl, heterocycloalkyl, C2-10 alkenyl, C2-10 alkynyl, -CORa, -CO2Ra, and - CONRa 2; and Ra is as defined in claim 7. 19. The polymer matrix according to any preceding claim wherein the polymer matrix also comprises water. 20. An optical sensor for optical sensing of CO2, comprising: − a sensing region comprising a polymer matrix as defined in any one of claims 1- 19; and − an optical waveguide arranged to direct light onto the sensing region. 21. The optical sensor according to claim 20 which is a sensor for detecting the CO2 content of blood. 22. The optical sensor according to claim 20 or claim 21 wherein the sensing region further comprises a hydrophobic membrane, and the sensor is configured to allow an analyte to enter the sensing region through the hydrophobic membrane. 23. The optical sensor according to any of claims 20 to 22, wherein the polymeric support comprises a hydrophilic polymer; the sensing region further comprises a gas- permeable hydrophobic membrane which is impermeable to liquids and hydrogen ions; and the sensor is configured to allow CO2 to enter the sensing region through the hydrophobic membrane.

24. The optical sensor according to any one of claims 20 to 22 wherein the polymeric support comprises a hydrophobic polymer; the sensing region further comprises a gas- permeable hydrophobic membrane which is impermeable to liquids and hydrogen ions; and the sensor is configured to allow CO2 to enter the sensing region through the hydrophobic membrane. 25. A method of producing a polymer matrix for optical sensing of CO2, the method comprising: (i) providing a polymeric support, wherein either a fluorophore or a counter-ion moiety is covalently bound to the polymeric support by a polymer linking moiety; and (ii) suspending either a fluorophore or a counter-ion moiety, whichever is not covalently bound to the polymeric support via the polymer linking moiety, in the polymeric support. 26. The method according to claim 25 wherein the polymer matrix for optical sensing is as defined in any one of claims 1 to 19. 27. A method of producing an optical sensor for optical sensing of CO2, the method comprising: (i) providing an optical waveguide; (ii) disposing a polymer matrix as defined in any one of claims 1 to 19 on the optical waveguide; and (iii) optionally disposing a membrane on the polymer matrix. 28. The method according to claim 27 wherein the optical sensor is as defined in any one of claims 20-24. 29. A method of measuring the CO2 content of a sample, the method comprising: (i) contacting an optical sensor as defined in any one of claims 20-24 with the sample; (ii) providing excitation light to the sensing region through the optical waveguide; and (iii) detecting the intensity I1 of light emitted from the fluorophore at a first wavelength λ1 through the optical waveguide. 30. The method according to claim 29 wherein the method further comprises (iv) detecting the intensity I2 of light emitted from the fluorophore at a second wavelength λ2 through the optical waveguide; and (v) optionally comparing I2 to I1. 31. The method according to claim 29 or claim 30 which is a method of continuously measuring the CO2 content of the sample, wherein: − the optical sensor is continuously contacted with the sample for an exposure period of at least ten minutes; − excitation light is provided to the sensing region continuously or intermittently throughout the exposure period through the optical waveguide; and − the intensity I1 of emission of the fluorophore at a first wavelength λ1, and optionally the intensity I2 of emission of the fluorophore at a second wavelength λ2, is/are detected continuously or intermittently throughout the exposure period through the optical waveguide.

Description:
POLYMER MATRIX FOR CO 2 SENSING FIELD OF THE INVENTION The invention provides a polymer matrix for optical sensing of CO 2 , and a process for producing the polymer matrix. The invention also provides an optical sensor for optical sensing of CO 2, comprising the polymer matrix of the invention, and a method for making the optical sensor. The invention further provides a method of measuring the CO 2 content of a sample, using the sensor of the invention. BACKGROUND TO THE INVENTION It is important in many fields to be able to detect the presence, or indeed the precise concentration, of carbon dioxide in an aqueous sample. It is also useful to be able to accurately determine the pH of an aqueous sample. These quantities can frequently be assessed by the same methodology, because when CO 2 dissolves in an aqueous solution, some of it reacts with water to form an acidic species, carbonic acid (H 2 CO 3 ). The presence of dissolved carbonic acid affects the pH of the solution. Thus, measurement of the pH of a solution not only yields the pH but can in principal also (subject to correction for the presence of any other acidic or basic species) indicate the quantity of dissolved CO 2 . Thus, measurements of pH are affected by the quantity of dissolved CO 2 but do not provide a measure of CO 2 unless they are corrected for the presence of any other acidic or basic species. However, correction for the presence of other acidic or basic species is in practice exceedingly difficult or even impossible, and it is therefore desirable to specifically detect CO 2 in a sample. Detection of CO 2 in aqueous solution has most commonly been achieved with systems based on the Severinghaus electrode. The Severinghaus electrode comprises a buffer solution containing a reservoir of bicarbonate ions (HCO 3 -). The buffer solution is separated from a sample by a gas-permeable membrane. CO 2 diffuses into the buffer solution and equilibrates with the aqueous bicarbonate ions, thereby altering the pH of the buffer solution. A pH electrode monitors the pH of the buffer solution, and hence variations in the detected pH indicate variations in the quantity of CO 2 present in the sample. This system is useful in CO 2 detection in procedures such as fermentation. However, the electrode-based system has major drawbacks for the monitoring of CO 2 in biological systems such as blood. In order to provide an accurate measurement, the Severinghaus electrode requires equilibration of the sample with the internal bicarbonate buffer. This means that the time taken to provide an accurate measurement is slow, typically around 5 to 15 minutes. However, in biological systems such as blood, CO 2 content can vary suddenly, with catastrophic consequences to the patient. It is therefore desirable to provide a CO 2 detection system with a quicker response time. It is further desirable to provide a CO 2 detection system capable of continuously monitoring a sample, to provide real-time information. Another disadvantage of the Severinghaus electrode in the field of blood gas sensing is that if the membrane separating the blood sample and the bicarbonate buffer bursts, bicarbonate can be released into the blood. The Severinghaus electrode is therefore unsuitable for measuring CO 2 content of blood which is returned to the patient, as release of bicarbonate into the blood of a live patient can have damaging consequences. Previous workers have attempted to provide sensors which overcome some of the above difficulties. Ge et al. have provided a so-called “naked optical CO 2 sensor” (Ge et al., Biosensors & Bioelectronics, 18 (2003), pp857-865). This device makes use of a fluorescent dye, pyranine, which has a pH-dependent fluorescence emission profile. The protonated form of pyranine has an emission peak which differs in wavelength from the deprotonated form of pyranine. Thus, the ratio of emission intensity at these two wavelengths can be used to determine the relative concentrations of the two forms of pyranine and hence the CO 2 content of the system. To avoid the need for a bicarbonate buffer solution, the fluorescent dye is suspended in a polymeric support together with a phase transfer agent. The phase transfer agent is typically a quaternary ammonium species that deprotonates the fluorescent dye and helps the fluorescent dye to dissolve. CO 2 diffuses into the polymeric support and, together with trapped water, generates carbonic acid, altering the pH inside the polymeric support and hence altering the ratio of deprotonated to protonated fluorescent dye. However, there are considerable difficulties in manufacturing this optical sensor. The sensing region must be generated by producing a polymeric support and then suspending a fluorescent dye and a phase transfer agent within the matrix. The suspension is achieved by providing a solution comprising the fluorescent dye and the phase transfer agent. The polymeric support is then saturated with this solution and allowed to dry. However, the fluorescent dye, the polymer and the phase transfer agent typically have very different solubilities. It is therefore difficult to provide a solution containing the desired concentrations of each of the fluorescent dye and the phase transfer agent, and still more difficult to provide such a solution which can penetrate the polymeric support. Not only is it difficult to combine these necessary components, but it is also difficult to provide a polymeric support/dye/phase transfer agent combination which is capable of retaining enough water to mediate pH variation in the presence of CO 2 . One consequence of this is that the amount of water can be highly uncertain, leading to a lack of uniformity among sensors and considerable uncertainty in the concentrations of the dissolved dye and phase transfer agent. This renders accurate determination of CO 2 concentration more difficult. Another consequence is that the polymeric support, dye and phase transfer agent must be chosen carefully (Chu et al., Photonic Sensors, (2011) vol. 1, no. 3, pp234-250). The choice of polymeric support may be governed by solubility considerations rather than suitability for sensing (e.g. gas permeability, ion impermeability, and other relevant characteristics). Moreover, optimisation of the amount of fluorescent dye, phase transfer agent and water typically cannot be achieved. Thus, there is evidently a need to provide a means for accurate CO 2 sensing which has a rapid response time, can be used for continuous measurement and which overcomes the above manufacturing difficulties. SUMMARY OF THE INVENTION The inventors have recognised that a counter-ion moiety, having a positive charge, may be used to form an ion pair with the fluorophore. The ion pair is subject to disruption by acid. Thus, the inventors have recognised that the “phase transfer agent” of the prior art can play a key role in optical sensing of CO 2 and pH, and they have consequently appreciated that the relative amounts of fluorophore and counter-ion moiety in the system are significant, and may be used to improve the accuracy of an optical sensor based on the ion pair and fluorophore. Further, the inventors have noted that the difficulty of providing an optical sensor comprising the desired quantities of both the fluorophore and the counter-ion moiety can be reduced by covalently binding either the fluorophore or the counter-ion moiety to the polymer matrix. Where either the fluorophore or the counter-ion moiety is bound to the polymer matrix, only one of the fluorophore and the counter-ion moiety needs to be provided within the matrix by other means (e.g. suspended in the matrix). Thus, the need to perform the difficult task of providing a solution containing the desired concentrations of both the fluorophore and the oppositely-charged “phase transfer moiety” is entirely removed. One component may be suspended in the polymer matrix and this is considerably easier to achieve than suspending two components each having differing solubilities. Accordingly, the relative quantities of the fluorophore and the counter-ion moiety can be much more precisely controlled, leading to a more accurate sensor, as will be shown below. Accordingly, herein is described a polymer matrix for optical sensing of CO 2 , comprising a fluorophore, a positively charged counter-ion moiety and a polymeric support, wherein either the fluorophore or the counter-ion moiety is covalently bound to the polymeric support by a polymer linking moiety. Whichever of the fluorophore or the counter-ion moiety is not covalently bound to the polymeric support may be provided within the polymeric support by any means. Typically, whichever of the fluorophore or the counter-ion moiety is not covalently bound to the polymeric support by a polymer linking moiety is suspended in the polymeric support. As the polymer matrix is for CO 2 sensing, it is generally configured to prevent acids and bases (other than carbonic acid generated by the presence of CO 2 ) from contacting the fluorophore. For instance, the polymer matrix may comprise or consist of a hydrophobic polymer or hydrophobic polymers. Accordingly, the polymer matrix may be hydrophobic. This prevents aqueous acids from penetrating the matrix. Alternatively or additionally, the polymer matrix may be protected by a membrane which is gas-permeable but which is impermeable to liquids and hydrogen ions. This prevents other acids and bases from contacting the fluorophore. By “protected” is meant that the membrane is arranged to prevent liquids and hydrogen ions from entering the polymer matrix. It is particularly preferred that the polymer matrix is protected by the aforementioned gas-permeable membrane as this has the further advantage of maintaining a fixed concentration of water within the polymer matrix which improves its accuracy in sensing applications. The polymer matrix of the invention can be made by any means. However, it is particularly convenient to provide a polymeric support having either the fluorophore or the counter-ion moiety covalently bound thereto, and then suspending the other component (i.e. whichever of the fluorophore and counter-ion moiety is not covalently bound to the polymeric support) in the polymeric support. The step of suspending either a fluorophore or a counter-ion moiety in the polymeric support is considerably easier, and leads to more accurately-known concentrations of the species suspended in the polymeric support, than prior art methods which require both the fluorophore and an oppositely-charged “phase transfer agent” to be suspended in a polymeric support. Accordingly, herein is described a method of producing a polymer matrix for optical sensing of CO 2 , the method comprising: (i) providing a polymeric support, wherein either a fluorophore or a counter- ion moiety is covalently bound to the polymeric support by a polymer linking moiety; and (ii) suspending either a fluorophore or a counter-ion moiety, whichever is not covalently bound to the polymeric support via the polymer linking moiety, in the polymeric support. The polymer matrix of the invention can be used to manufacture an optical sensor having improved accuracy and improved ease of manufacture. Thus, also described hereafter is an optical sensor for optical sensing of CO 2 comprising: − a sensing region comprising a polymer matrix as described herein; and − an optical waveguide arranged to direct light onto the sensing region. In a particularly preferred embodiment of the invention, there is provided an optical sensor for optical sensing of CO 2 , comprising: − a sensing region comprising a polymer matrix as described herein, wherein the polymeric support comprises a hydrophilic polymer; and the sensing region further comprises a gas-permeable hydrophobic membrane which is impermeable to liquids and hydrogen ions, and the sensor is configured to allow CO 2 to enter the sensing region through the hydrophobic membrane; and − an optical waveguide arranged to direct light onto the sensing region. This configuration of sensor is highly preferred as the hydrophobic membrane can prevent liquid water (and any acid or alkaline species therein) in an aqueous sample from entering the sensing region of the sensor. However, the hydrophobic membrane (which is typically gas-permeable and impermeable to liquids) permits gaseous CO 2 in the sample to diffuse into the sensing region. Thus, this configuration of sensor specifically detects CO 2 . The polymer matrix may comprise a hydrophobic polymer and may alternatively consist of a hydrophobic polymer or polymers. Where the polymer matrix comprises or consists of a hydrophobic polymer or polymers, possible interference from acids or bases is very unlikely, although care must be taken (when the sensor is used) ensure that some water is present in the polymer matrix to allow CO 2 to form carbonic acid. The polymer matrix of the invention can be used to manufacture an optical sensor. Accordingly, described herein is a method of producing an optical sensor for optical sensing of CO 2 , the method comprising: (i) providing an optical waveguide; (ii) disposing a polymer matrix as described herein on the optical waveguide. In a particularly advantageous embodiment, the method of producing an optical sensor further comprises disposing a hydrophobic membrane on the polymer matrix. This can ensure that the sensor comprises a known and fixed quantity of water, and can be used for the specific detection of CO 2 , as will be described hereafter. The optical sensor of the invention can be used to detect and/or to quantify the amount of CO 2 in a sample. Accordingly, the invention provides a method of measuring the CO 2 content of a sample, the method comprising: (i) contacting an optical sensor as described herein with the sample; (ii) providing excitation light to the sensing region through the optical waveguide; and (iii) detecting the intensity I 1 of light emitted from the fluorophore at a first wavelength λ 1 through the optical waveguide. BRIEF DESCRIPTION OF THE FIGURES Figure 1 is schematic diagram of the sensing chemistry on which the invention is based, illustrated using 8-hydroxy trisodium 1,3,6-pyrenetrisulfonic acid (“HTPS”) as the fluorophore and cetyltrimethylammonium hydroxide (“CTMAOH + ”) as the positively- charged counter ion moiety. Figure 2 contains two graphs indicating the emission spectrum of the fluorophore HTPS under various conditions. Graph A shows the emission spectrum of HTPS when CTMAOH + is present at a molar ratio of 50:1 compared to HTPS, while Graph B shows the emission spectrum of HTPS when CTMAOH + is present at a molar ratio of 25:1 compared to HTPS. In both cases, the spectrum in the presence of 0% CO 2 is shown (blue line; higher intensity at 470.0 nm) and 100% CO 2 (red line; lower intensity at 470.0 nm). Figure 3 is a diagram of an optical sensor. Figure 4 is a binding curve showing the binding of CO 2 to a polymer matrix in a sensor of the invention as a function of pCO 2 . Figure 5 is shows the actual pCO 2 values and pCO 2 values measured by a sensor according to the invention over a period of five hours. DETAILED DESCRIPTION OF THE INVENTION Unless defined otherwise, all technical and scientific terms used herein have the same meanings as commonly understood by one of skill in the relevant art. The invention is described hereafter with reference to particular embodiments and drawings. However, the invention is not limited to any specific embodiment or aspect of the following description. It should be noted that the following descriptions of various aspects of the invention are applicable to each of the differing embodiments of the invention. For instance, the description of the fluorophore concerns the fluorophore as present in the polymer matrix of the invention, and in the optical sensor of the invention, and in the various processes described herein. Those skilled in the art will recognize, or be able to ascertain using no more than routine experimentation, many equivalents to the specific embodiments of the invention described herein. Such equivalents are intended to be encompassed by the following claims. Definitions As used in this specification and the appended claims, the singular forms “a”, “an”, and “the” include plural referents unless the content clearly dictates otherwise. Thus, for example, reference to “a counter-ion moiety” includes two or more counter-ion moieties. Where the term "comprising" is used in the present description and claims, it does not exclude other elements or steps. Furthermore, the terms first, second, third and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances and that the embodiments of the invention described herein are capable of operation in other sequences than described or illustrated herein. "About" as used herein when referring to a measurable value such as an amount, a temporal duration, and the like, is meant to encompass variations of ± 20 % or ± 10 %, more preferably ± 5 %, even more preferably ± 1 %, and still more preferably ± 0.1 % from the specified value, as such variations are appropriate to perform the disclosed methods. “Alkyl” as used herein refers to monovalent straight-chained and branched alkyl groups. Typically, the alkyl group is a straight-chained alkyl group. An alkyl group may have from 1 to 30 carbon atoms (i.e. is a C 1-30 alkyl group). Typically, an alkyl group is a C 1- 20 alkyl group or a C 1-10 alkyl group. Preferred alkyl groups include C 1-6 alkyl groups, for example C 1-4 alkyl groups. Examples of alkyl groups include methyl and ethyl groups, and straight-chained or branched propyl, butyl and pentyl groups. Particular alkyl groups include methyl, ethyl, n-propyl, isopropyl, n-butyl, sec-butyl, isobutyl, and tert-butyl groups. “Cycloalkyl” as used herein refers to monovalent groups derived from a saturated monocyclic hydrocarbon. A cycloalkyl group may have, for instance, 3 to 12 carbon atoms but “cycloalkyl” typically refers to C 3-10 cycloalkyl groups. C 3-7 cycloalkyl groups are particularly preferred. Exemplary cycloalkyl groups include cyclopentyl and cyclohexyl groups. “Alkenyl” as used herein refers to a monovalent hydrocarbon moiety comprising one or more carbon-carbon double bonds. Typically an alkenyl group contains one carbon- carbon double bond. The hydrocarbon moiety may be a straight-chain or branched; typically, the hydrocarbon moiety is a straight chain. An alkenyl group may have from 2 to 30 carbon atoms (i.e. is a C 2-30 alkenyl group). Typically, an alkenyl group is a C 2-20 or a C 2-10 alkenyl group. Preferred alkenyl groups include C 2-6 alkenyl groups, for example C 2-4 alkenyl groups. “Cycloalkenyl” as used herein refers to non-aromatic monovalent groups derived from a monocyclic hydrocarbon comprising one or more carbon-carbon double bonds. Typically a cycloalkenyl group contains one carbon-carbon double bond. A cycloalkenyl group may have from 3 to 12 carbon atoms; “cycloalkenyl” typically refers to C 4-10 cycloalkenyl groups. C 5-7 cycloalkenyl groups are particularly preferred. “Alkynyl” as used herein refers to a monovalent hydrocarbon moiety comprising one or more carbon-carbon triple bonds. Typically an alkynyl group contains one carbon-carbon triple bond. The hydrocarbon moiety may be a straight-chain or branched; typically, the hydrocarbon moiety is a straight chain. An alkynyl group may have from 2 to 30 carbon atoms (i.e. is a C 2-30 alkynyl group). Typically, an alkynyl group is a C 2-20 or a C 2-10 alkynyl group. Preferred alkynyl groups include C 2-6 alkynyl groups, for example C 2-4 alkynyl groups. “Aryl” as used herein refers to a monovalent unsaturated aromatic carbocyclic group which may be monocyclic (for instance a phenyl group) or polycyclic, having multiple condensed rings (e.g. a naphthyl group). An aryl group typically contains from 6 to 14 carbon atoms. A preferred aryl group is phenyl. “Alkylaryl” as used herein refers to a monovalent group comprising an alkylene and an aryl species as described herein. The number of carbon atoms in the alkyl moiety may be denoted by a prefix; for instance, a C 1-10 alkylaryl moiety comprises a C 1-10 alkylene group and an aryl group. The number of carbon atoms in the aryl moiety may also be denoted; for instance, a C 1-10 alkyl C 6-14 aryl species comprises a C 1-10 alkylene and a C 6-14 aryl species. A preferred alkylaryl moiety is benzyl. “Heteroaryl” as used herein refers to monovalent aromatic carbocyclic groups having at least one heteroatom selected from oxygen, sulphur and nitrogen. Heteroaryl groups typically comprise one, two or three heteroatoms each independently selected from oxygen, sulphur and nitrogen, usually one such heteroatom. Heteroaryl groups may be monocyclic or polycyclic. A heteroaryl group typically comprises from 5 to 14 carbon atoms. “Heterocycloalkyl” as used herein refers to monovalent saturated monocyclic rings comprising at least one heteroatom selected from oxygen, sulphur and nitrogen. Heterocycloalkyl groups typically comprise one, two or three heteroatoms each independently selected from oxygen, sulphur and nitrogen, usually one such heteroatom. Heterocycloalkyl rings may be monocyclic (e.g. piperidinyl) or polycyclic (e.g. decahydroquinoline). A heterocycloalkyl group typically comprises from 5 to 14 carbon atoms. “Alkylene” as used herein refers to a divalent saturated hydrocarbon moiety which may be straight-chained or branched. Typically, the alkylene group is a straight-chained alkylene group. An alkylene group typically has from 1 to 10 carbon atoms (i.e. is a C 1-10 alkylene group). However, preferred alkylene groups include C 1-6 alkylene groups, for example C 1-4 alkylene groups. Examples of alkyl groups include methylene (-CH 2 -) and ethylene (-CH 2 CH 2 -) groups. “Alkenylene” as used herein refers to a divalent hydrocarbon moiety comprising one or more carbon-carbon double bonds. Typically an alkenylene group contains one carbon- carbon double bond. The hydrocarbon moiety may be a straight-chain or branched; typically, the hydrocarbon moiety is a straight chain. An alkenylene group typically has from 2 to 10 carbon atoms (i.e. is a C 2-10 alkenylene group). However, preferred alkenylene groups include C 2-6 alkenylene groups, for example C 2-4 alkenylene groups. “Alkynylene” as used herein refers to a divalent hydrocarbon moiety comprising one or more carbon-carbon triple bonds. Typically an alkynylene group contains one carbon- carbon triple bond. The hydrocarbon moiety may be a straight-chain or branched; typically, the hydrocarbon moiety is a straight chain. An alkynylene group typically has from 2 to 10 carbon atoms (i.e. is a C 2-10 alkenylene group). However, preferred alkynylene groups include C 2-6 alkynylene groups, for example C 2-4 alkynylene groups. The term “halogen” as used herein is intended to include fluorine, chlorine, bromine and iodine atoms, typically fluorine, chlorine or bromine. The term “oxo” indicates a =O group. The term “hydroxy” indicates an –OH group. Reference herein to a group in its protonated form should be taken to encompass reference to any deprotonated form which may be produced in solution. For instance, reference to “hydroxy” or “-COOH” should be taken to encompass such groups when deprotonated to –O- or –COO- in solution. Sensing chemistry The sensing chemistry employed in the invention is illustrated in Figure 1. The polymer matrix of the invention comprises a fluorophore which, when deprotonated, carries a negative charge; and a positively charged counter-ion moiety. For the purposes of illustration, deprotonated HTPS (hydroxypyrene trisulfonate) and the quaternary ammonium cation CTMAOH + (CetylTriMethylAmmonium) are shown in Figure 1. These two oppositely charged ionic species interact, forming an ion pair. When CO 2 enters the sensing environment, it interacts with water trapped in the polymer matrix. The reaction of H 2 O and CO 2 generates carbonic acid, H 2 CO 3 . Carbonic acid interacts with the ion pair, by protonating the fluorophore. This leaves a hydrogencarbonate anion, HCO 3 -, which interacts with the positively-charged counterion moiety, forming a new ion pair. By way of example, in Figure 1, interaction with carbonic acid causes deprotonated HTPS to become protonated, leaving a new ion pair comprising HCO 3 - and CTMAOH + . This interaction causes a change in the emission spectrum and/or the absorption spectrum of the system. The deprotonated fluorophore has a differing fluorescence emission spectrum to that of the protonated fluorophore. Similarly, the deprotonated fluorophore has a differing absorption spectrum to that of the protonated fluorophore. By way of example, deprotonated HTPS absorbs and emits most strongly at wavelengths of around 465 nm, while protonated HTPS absorbs and emits most strongly around 405 nm. The polymeric matrix of the invention is therefore useful in a sensing method for optical sensing of CO 2 , wherein the sensing method involves disruption of an ion pair comprising the fluorophore and the counter-ion moiety by protonation of the negatively- charged moiety of the fluorophore. Thus, monitoring the absorption spectrum or the emission spectrum of the polymer matrix will show an increase in absorption strength or emission intensity of the spectral peak corresponding to the protonated form of the fluorophore as the CO 2 concentration within the polymer matrix increases. The absorption strength or emission intensity of the spectral peak corresponding to the deprotonated form of the fluorophore will correspondingly decrease. Similarly, an increase will be observed in absorption strength or emission intensity of the spectral peak corresponding to the deprotonated form of the fluorophore as the CO 2 concentration within the polymer matrix decreases. Sensing of pH relies on the deprotonation/protonation of the fluorophore. Accordingly, pH sensing methods and uses do not require the presence of a positively- charged counter-ion moiety. Thus, while the polymeric matrix of the invention can be used for the detection of pH (if acid is permitted to enter the matrix), the polymeric matrix is particularly suited to CO 2 sensing. Optical sensors for detection of CO 2 , and methods of detecting or quantifying the CO 2 content of a sample, are thus preferred. It should be noted that in some cases, either the protonated or the deprotonated form of the fluorophore may have a very weak absorption or emission spectrum. In such cases, it is possible that no increase or decrease in the absorption strength or emission intensity of the spectral peak corresponding to that form of the fluorophore may be observed as its concentration varies. Rather, only the increase or decrease in absorption strength or emission intensity of the spectral peak corresponding to the other form of the fluorophore may be observed. The positively-charged counter-ion moiety is generally used in excess. The more positively-charged counter-ion moiety is present, the more likely it is that each fluorophore moiety will form an ion pair with the counter-ion moiety in the absence of CO 2 . This increases the spectral change that occurs when CO 2 enters the polymer matrix, as the fluorophores which become protonated (and counter-ion moieties which become associated with a carbonate ion) are more likely to have been previously part of an ion pair comprising a fluorophore and a counter-ion. If the fluorophore does not form an ion pair with the counter- ion moiety in the absence of CO 2 , then it is likely to remain protonated and the effect of protonation will not be observed when CO 2 is added to the system. This is illustrated in Figure 2. Graph A of Figure 2 shows the emission spectrum of HTPS when CTMAOH + is present at a molar ratio of 50:1 compared to HTPS, while Graph B shows the emission spectrum of HTPS when CTMAOH + is present at a molar ratio of 25:1 compared to HTPS. In both cases, the spectrum in the presence of 0% CO 2 is shown (blue line; higher intensity at 470.0 nm) and 100% CO 2 (red line; lower intensity at 470.0 nm). It can be clearly seen that, where the counter-ion (CTMAOH + ):fluorophore (HTPS) ratio is larger, i.e. 50:1 rather than 25:1, a greater intensity change is observed upon the addition of CO 2 . The greater intensity change means that the sensor is more sensitive and hence has better performance. The polymer matrix of the invention is therefore particularly advantageous as large quantities of the counter-ion moiety may easily be incorporated into the polymeric support, ensuring that the counter-ion moiety is in excess. Thus, in a preferred embodiment, the counter-ion moiety is covalently bound to the polymeric support. It is also preferred that the counter-ion moiety is present in a molar excess compared to the fluorophore. In a particularly preferred embodiment, the counter-ion moiety is covalently bound to the polymeric support and is present in a molar excess compared to the fluorophore. For example, the polymeric matrix may comprise up to about 25% by weight of the counter-ion moiety, typically up to about 20% by weight, preferably up to about 10% by weight of the counter-ion moiety. The polymeric matrix may therefore comprise about 1- 25% by weight of the counter-ion moiety, typically about 2-20% by weight and preferably about 5-10% by weight of the counter-ion moiety. Where the counter-ion moiety is incorporated into the polymeric support, the polymeric support may comprise up to about 25% by weight of the counter-ion moiety, typically up to about 20% by weight and preferably up to about 10% by weight of the counter-ion moiety. The polymeric support may therefore comprise about 1-25% by weight of the counter-ion moiety, typically about 2-20% by weight and preferably about 5-10% by weight of the counter-ion moiety. By contrast, the polymer matrix of the invention may comprise up to about 10% by weight of the fluorophore, typically up to about 7% by weight, preferably up to about 5% by weight of the fluorophore. The polymeric matrix may therefore comprise about 0.1-10% by weight of the fluorophore, preferably about 1-5% by weight of the fluorophore, e.g. about 2%, 3% or 4% by weight of the fluorophore. Where the fluorophore is incorporated into the polymeric support, the polymeric support may comprise up to about 10% by weight of the fluorophore, typically up to about 5% by weight of the fluorophore. For example, the polymeric support may comprise about 0.1-10% by weight of the fluorophore, preferably about 1-5% by weight of the fluorophore, e.g. about 2%, 3% or 4% by weight of the fluorophore. The molar ratio of counter-ion to fluorophore may be 2:1 or greater. Typically, the molar ratio of counter-ion to fluorophore is at least 20:1. Preferably, the molar ratio of counter-ion to fluorophore is at least 30:1, for example at least 40:1 or at least 50:1. Generally, the molar ratio of counter-ion to fluorophore is from 20:1 to 1000:1, preferably from 30:1 to 500:1 or 40:1 to 200:1. By way of example, the molar ratio of counter-ion to fluorophore may be about 50:1 or about 100:1. Fluorophore I. Fluorescence emission and absorption characteristics A fluorophore is a moiety which can absorb light and emit light by fluorescent emission. Usually, the fluorophore described herein absorbs light in the visible region of the electromagnetic spectrum. Said fluorophore also usually emits light in the visible region of the electromagnetic spectrum. By “the visible region of the electromagnetic spectrum” is meant electromagnetic radiation having a wavelength of from about 400 nm to about 700 nm. The fluorophore may also absorb and/or emit radiation outside the visible region of the electromagnetic spectrum. The fluorophore can exist in deprotonated and protonated forms. Protonation of a fluorophore affects its electronic structure. Consequently, the protonated and deprotonated forms of a fluorophore will typically absorb and emit at different wavelengths. The characteristic emission and absorption spectra of the protonated form and the deprotonated form differ. Thus, measuring the absorption or emission spectrum of a fluorophore will indicate whether the protonated form, the deprotonated form or a mixture of protonated and deprotonated forms are present. Of course, where a fluorophore has multiple different protonated and deprotonated forms (for instance, where a fluorophore has two or more labile protons), measuring the absorption or emission spectrum of the fluorophore can indicate which of the multiple different protonated and deprotonated forms are present. Thus, reference to “the protonated form of the fluorophore” and “the deprotonated form of the fluorophore” should be understood as referring to “one of the protonated forms of the fluorophore” and “one of the deprotonated forms of the fluorophore” in cases where a fluorophore has more than one protonated form and more than one deprotonated form. Usually, therefore, the fluorophore has at least one protonated form and at least one deprotonated form, wherein the fluorescence emission spectrum of the protonated form differs from the fluorescence emission spectrum of the deprotonated form. For example, the fluorescence emission spectrum of the protonated form may have a peak emission wavelength of λ 1 and the fluorescence emission spectrum of the deprotonated form may have a peak emission wavelength of λ 2 , wherein λ 1 differs from λ 2 . Typically, λ 1 differs from λ 2 by at least 5 nm; and preferably λ 1 differs from λ 2 by at least 10 nm or at least 20 nm. The larger the difference between λ 1 and λ 2 , the easier it is to distinguish the two peaks in a fluorescence emission spectrum. Similarly, in another preferred embodiment, the absorption spectrum of the protonated form differs from the absorption spectrum of the deprotonated form of the fluorophore. For example, the absorption spectrum of the protonated form may have a peak absorption wavelength of λ 3 and the absorption spectrum of the deprotonated form may have a peak absorption wavelength of λ 4 , wherein λ 3 differs from λ 4 . Typically, λ 3 differs from λ 4 by at least 5 nm; and preferably λ 3 differs from λ 4 by at least 10 nm or at least 20 nm. The larger the difference between λ 3 and λ 4 , the easier it is to distinguish the two peaks in an absorption spectrum. Thus, the fluorophore has a pH-dependent absorption spectrum and/or a pH- dependent fluorescent emission spectrum. By “a pH-dependent absorption spectrum” is meant that the absorption spectrum comprises (a) an absorption peak corresponding to the absorption of a protonated form of the fluorophore; and/or (b) an absorption peak corresponding to the absorption of a deprotonated form of the fluorophore. By “a pH- dependent fluorescent emission spectrum” is meant that the fluorescence emission spectrum comprises (a) an emission peak corresponding to the emission of a protonated form of the fluorophore; and/or (b) an emission peak corresponding to the emission of a deprotonated form of the fluorophore. Preferably, the fluorophore has a pH-dependent absorption spectrum or a pH-dependent fluorescent emission spectrum comprising both (a) and (b), as this permits ratiometric measurements of the two forms. As the concentration of acid (i.e. carbonic acid) in the polymer matrix increases, the proportion of fluorophore which adopts the protonated form will increase. Consequently, the intensity of absorption or emission spectral peaks associated with the protonated form of the fluorophore will increase. Typically, therefore, the emission spectrum of the fluorophore comprises (a) an emission peak corresponding the fluorescence emission of a protonated form of the fluorophore, the intensity of which is correlated to the concentration of the protonated fluorophore in the polymer matrix. Similarly, the emission spectrum of the fluorophore typically also or alternatively comprises (b) an emission peak corresponding to the fluorescence emission of a deprotonated form of the fluorophore, the intensity of which is correlated to the concentration of the deprotonated form of the fluorophore in the polymer matrix. Preferably, the emission spectrum comprises (a) and (b). Similarly, the absorption spectrum of the fluorophore typically comprises (a) an absorption peak corresponding the absorption of a protonated form of the fluorophore, the intensity of which is correlated to the concentration of the protonated fluorophore in the polymer matrix. Similarly, the absorption spectrum of the fluorophore typically also or alternatively comprises (b) an absorption peak corresponding to the absorption of a deprotonated form of the fluorophore, the intensity of which is correlated to the concentration of the deprotonated form of the fluorophore in the polymer matrix. Preferably, the absorption spectrum comprises (a) and (b). Where the intensity of an absorption or emission peak is correlated to the concentration of a protonated or deprotonated form of the fluorophore, the concentration of that species (and hence the CO 2 content of the system) may be calculated using the intensity of that peak alone. However, a more accurate measurement may be obtained using a ratiometric approach. This is possible where the absorption or emission spectrum comprises two peaks, one corresponding to the protonated form and another corresponding to the deprotonated form of the fluorophore. Where the ratio of intensity of these two peaks is obtained and used to calculate the CO 2 content of the system, errors in the calculation due to photobleaching of the fluorophore can be eliminated. Thus, in a preferred embodiment, the fluorophore can undergo fluorescence emission at a first wavelength λ 1 with an intensity I 1 , and can undergo fluorescence emission at a second wavelength λ 2 with an intensity I 2 , wherein the ratio of I 1 to I 2 varies dependent upon pH. In a similarly preferred embodiment, the fluorophore can absorb light at a first wavelength λ 3 with an intensity I 3 , and can absorb light at a second wavelength λ 4 with an intensity I 4 , wherein the ratio of I 3 to I 4 varies dependent upon pH. Generally, fluorescence emission at λ 1 is the fluorescence emission of the protonated form of the fluorophore, while fluorescence emission at λ 2 is the fluorescence emission of the deprotonated form of the fluorophore. Similarly, absorption at λ 3 is the absorption of the protonated form of the fluorophore, while absorption at λ 4 is the absorption of the deprotonated form of the fluorophore. These numeric values are merely labels and may of course be reversed. II. Protonated, deprotonated and salt forms of fluorophore The fluorophore has a protonated and deprotonated form and so may interact with water or water vapour to gain or lose one or more protons. A system comprising H 2 O and the fluorophore will tend towards an equilibrium wherein the deprotonated and/or the protonated forms of the fluorophore are present. How much of each of these forms are present (i.e. the position of the equilibrium) will depend on the pH of the system and the pKa of the fluorophore moiety. Where the system is highly acidic, generally all of the fluorophore will be protonated; where the system is highly alkaline, generally all of the fluorophore will be deprotonated. In biological systems, the pH is generally neither strongly acidic nor strongly alkaline. A fluorophore may be selected having a suitable pKa for its intended use. Sensing will be most efficacious where the pKa of the fluorophore is similar to the pH of the environment in which it is to be used. Where the pKa of the fluorophore is highly dissimilar from the pH of the environment in which it is used, almost all of the fluorophore will remain protonated or deprotonated when the pH of the environment changes. Thus, the variation in the absorption and/or emission properties of the system will be small and the difference will be difficult to detect using optical methodology. However, where the pKa of the fluorophore is similar to the pH of its environment, small changes in the pH of the environment can cause a significant change in the relative concentrations of the protonated and deprotonated forms of the fluorophore. Thus, the absorption and/or emission properties of the system will change more significantly and are easier to detect via the absorption or emission spectrum of the system. The polymer matrix is useful in the detection of carbonic acid (and hence CO 2 ), which is weakly acidic. Typically, therefore, the fluorophore has a pKa of from about 3.5 to 10. In a preferred embodiment, the fluorophore has a pKa of from about 4 to 9, for example from 5 to 8 or 6 to 8. In some embodiments, the fluorophore comprises a weak acid or a salt of a weak acid. In the context of the present invention, a “weak acid” refers to an acid having a pKa of from 5 to 9, for instance from 5.5 to 8.5, preferably from 6 to 8 or from 6.5 to 8. Thus, the fluorophore described herein may be any fluorophore which carries a negatively-charged moiety at near-neutral pH. Near-neutral pH is typically pH 5.5 to 8.5, in particular pH 6 to pH 8. The negatively charged moiety can be stabilised by the counter-ion moiety. However, the fluorophore can also become protonated (e.g. in the presence of acid). The fluorophore carrying a negatively charged moiety will typically exist in an equilibrium which also comprises the protonated form of the fluorophore at near-neutral pH. Preferably, the position of equilibrium lies towards the deprotonated form of the fluorophore at near- neutral pH. For instance, 50% or more of the fluorophore may be deprotonated (i.e. comprise a negatively-charged moiety) at near-neutral pH. Preferably, the fluorophore comprises an –O- group and/or a –COO- group at near- neutral pH. Of course, the fluorophore comprising an –O- group or –COO- group may exist in equilibrium with a form of the fluorophore wherein the –O- group and/or the –COO- is protonated. Fluorophores having multiple deprotonated forms are possible, such as fluorophores having multiple charged moieties able to accept a proton. Reference to a fluorophore carrying a charge or a charged moiety does not exclude the possibility that the fluorophore may include further charged moieties capable of accepting a proton. Further, reference to a “fluorophore” herein should be taken to encompass both the deprotonated form of the fluorophore and the protonated form of the fluorophore unless indicated otherwise. Where the fluorophore is in salt form, for instance where the fluorophore comprises a salt of a weak acid, the fluorophore may include one or more positive ions. These positively- charged ions are not covalently bound to the fluorophore or the polymer matrix. Such ions are dissociated from the fluorophore when the fluorophore is in solution. The nature of the positive ion is not particularly limited. Suitable positive ions include cations of elements in Group I or Group II of the periodic table (e.g. Li + , Na + , K + , Mg 2+ or Ca 2+ ) or ammonium salts (e.g. NH 4 + , CH 3 NH 3 + or CH 3 CH 2 NH 3 + ). Na + and K + are preferred. As the fluorophore may comprise a positive ion or ions, the overall charge of the fluorophore is not necessarily negative, even in its deprotonated form. However, positive ions need not be present; for instance, if the polymeric support is generated having a fluorophore covalently bound thereto and then washed, positive ions associated with the fluorophore may be removed. The overall charge of the fluorophore may therefore be positive, neutral or negative. Typically, the overall charge of the fluorophore is neutral or negative. III. Structure of fluorophore The fluorophore has at least a protonated form and a deprotonated form. At near- neutral pH, the fluorophore comprises a negatively-charged moiety which can accept a proton. Beyond this, the chemical structure of the fluorophore moiety is not particularly limited. The fluorophore may or may not be covalently bound to the polymeric support. For instance, in one embodiment the fluorophore may consist of the fluorophore moiety and optionally one or more associated ions; in another embodiment the fluorophore may be covalently attached to the polymeric support. It is preferred that the fluorophore is not attached covalently bound to the polymeric support via a polymer linking moiety. It is preferred that the fluorophore can be dissolved in a coating solution; a coating solution in which the fluorophore is dissolved can be added to the polymeric matrix in order to suspend the fluorophore in the polymer matrix. A coating solution may comprise any solvent, for instance water and/or an organic solvent. An important feature of the fluorophore moiety is that it is typically stable in aqueous solution. It is also preferred that the fluorophore is resistant to photobleaching, as this allows the polymer matrix to be used repeatedly and/or for long periods of time. It is particularly preferred that the fluorophore is resistant to photobleaching over long periods, as this allows the polymer matrix to be used in sensing applications for continuous measurements over long periods. Typically, therefore, loss of fluorophore due to photobleaching is less than 5% per hour of irradiation with visible light, preferably less than 2% or less than 1%. It is particularly preferred that loss of fluorophore due to photobleaching is less than 5% per 24 hours of irradiation with visible light, preferably less than 2% or less than 1%. Preferably, the deprotonated form of the fluorophore comprises an –O- moiety or a – COO- moiety. These species are preferred as the highly electronegative O atom can stabilise the negative charge of the deprotonated fluorophore. When protonated, therefore, it is preferred that the fluorophore comprises an –OH moiety or a –COOH moiety. It is particularly preferred that the deprotonated fluorophore comprises an –O- moiety, which can be protonated to form an –OH moiety. Further, the fluorophore typically comprises an extended system of delocalised electrons, as such systems typically give rise to the excited electronic states needed to allow absorption and fluorescence in the visible region of the electromagnetic spectrum. In a preferred embodiment, therefore, the fluorophore comprises an optionally substituted polycyclic aryl or polycyclic heteroaryl species, substituted with at least one –OH or –COOH group. Reference to an –OH or –COOH group refers to the fluorophore in its protonated form; the deprotonated form of the fluorophore would comprise an –O- moiety or a –COO- moiety. In a particularly preferred embodiment, the fluorophore comprises an optionally substituted polycyclic aryl or polycyclic heteroaryl species, substituted with at least one –OH group (again, reference to an –OH group concerns the fluorophore in its protonated form). In some embodiments, the fluorophore is pyranine or a derivative thereof. Pyranine (also referred to as HTPS or 8-hydroxy trisodium 1,3,6-pyrenetrisulfonic acid) has the following structure: 3 3 The –OH moiety can be deprotonated, yielding a deprotonated fluorophore having an absorption and emission spectrum which differ from the absorption and emission spectra of the protonated form. In some embodiments, therefore, the fluorophore comprises or is pyranine. Modified versions of pyranine are also known to be useful as fluorophores in pH sensing. One example of such a compound is modified DHDS (dihydroxy pyrene disulphonic acid), shown below.

Thus, in some embodiments the fluorophore comprises a species of formula (Fl-A): Each R group is independently selected from H, halogen, cyano, nitro, hydroxy, C 1-10 alkyl, C 3-10 cycloalkyl, C 4-10 cycloalkenyl, aryl, alkylaryl, heteroaryl, heterocycloalkyl, C 2-10 alkenyl, C 2-10 alkynyl, -SR a , -OR a , -SO 2 R a , -SO 3 -, -SOR a , -SO 2 NR a , -S(O)(NR a )R a , -NR a 2 , - NR a COR a , -NR a CO 2 R a , -COR a , -CO 2 R a , -CONR a 2 , or a covalent bond attaching the fluorophore to the polymer linking moiety; or two neighbouring R groups are joined together to form a carbocyclic or heterocyclic ring. In some embodiments, each R group is independently selected from H, halogen, cyano, nitro, hydroxy, C 1-10 alkyl, C 3-10 cycloalkyl, C 4-10 cycloalkenyl, C 2-10 alkenyl, C 2-10 alkynyl, -SR a , -OR a , -SO 2 R a , -SO 3 -, -SOR a , -SO 2 NR a , -S(O)(NR a )R a , -NR a 2 , -NR a COR a , - NR a CO 2 R a , -COR a , -CO 2 R a , and -CONR a 2 . For example, each R may be preferably be independently selected from H, hydroxy, C 1-6 alkyl, C 2-6 alkenyl, -OR a , -SO 3 -, -COR a , and - CO 2 R a . Particularly preferably, each R is independently selected from H, C 1-4 alkyl, and – SO 3 -. Each R a group is independently selected from H, C 1-10 alkyl, C 3-10 cycloalkyl, C 4-10 cycloalkenyl, aryl, alkylaryl, heteroaryl, heterocycloalkyl, C 2-10 alkenyl, and C 2-10 alkynyl. Preferably, each R a is independently selected from H, C 1-10 alkyl, C 3-6 cycloalkyl, C 4-6 cycloalkenyl, and C 2-10 alkenyl. Particularly preferably, each R a is independently selected from H and C 1-4 alkyl. Any R group capable of substitution may be optionally substituted by one or more substituents. The one or more substituents may be present at any suitable position on the R group, including (where present) on an R a group. The one or more substituents are typically selected from halogen, oxo, cyano, nitro, hydroxy, C 1-10 alkyl, C 3-10 cycloalkyl, C 4-10 cycloalkenyl, C 2-10 alkenyl, C 2-10 alkynyl, -OR b , -NR b 2 , -COR b , -CO 2 R b , and -CONR b 2 . Each R is usually substituted by 0, 1, 2 or 3 substituents, preferably by 0 or 1 substituents. Preferred substituents include halogen, oxo, hydroxy, C 1-6 alkyl, C 3-6 cycloalkyl, C 2-6 alkenyl, -OR b , -NR b 2 , -COR b , and -CO 2 R b . Particularly preferred substituents include halogen, hydroxy, C 1-4 alkyl, -OR b , -NR b 2 , -COR b , and -CO 2 R b . R b is selected from H, C 1-6 alkyl, C 3-6 cycloalkyl, C 4-6 cycloalkenyl, and C 2-6 alkenyl. Preferably, R b is selected from H, C 1-6 alkyl, C 3-6 cycloalkyl, and C 2-6 alkenyl. More preferably, R b is selected from H and C 1-4 alkyl. In a preferred embodiment, therefore, each R group is independently selected from H, hydroxy, C 1-6 alkyl, C 2-6 alkenyl, -OR a , -SO 3 -, -COR a , and -CO 2 R a and each R a is independently selected from H, C 1-10 alkyl, C 3-6 cycloalkyl, C 4-6 cycloalkenyl, and C 2-10 alkenyl. In this embodiment, each R may be unsubstituted or substituted by one substituent independently selected from halogen, hydroxy, C 1-4 alkyl, -OR b , -NR b 2 , -COR b , and -CO 2 R b wherein R b is selected from H and C 1-4 alkyl. Where an R group, or a substituent thereon, comprises a hydroxy group or a –COOH group, reference to “hydroxy” or “-COOH” (that is, -CO 2 R a where R a is H) includes the deprotonated forms of those groups, i.e. –O- and –COO- respectively. In a preferred embodiment, the species of formula (Fl-A) has electron-withdrawing groups at certain positions on the heterocyclic skeleton and not at other positions. In a preferred embodiment, therefore, the fluorophore comprises a species of formula (Fl-B)

Each R 1 group is independently selected from halogen, cyano, nitro, hydroxy, -OR a , - SO 2 R a , -SO 3 -, -SOR a , -SO 2 NR a , -S(O)(NR a )R a , -NR a 2 , -NR a COR a , -NR a CO 2 R a , -COR a , - CO 2 R a , -CONR a 2 and a covalent bond to the polymer linking moiety. Usually each R 1 group is independently selected from halogen, cyano, nitro, hydroxy, -OR a , -SO 2 R a , -SO 3 -, -SOR a , - SO 2 NR a , -S(O)(NR a )R a , -NR a 2 , -NR a COR a , -NR a CO 2 R a , -COR a , -CO 2 R a , and -CONR a 2 . Preferably each R 1 group is independently selected from hydroxy, -OR a , -SO 2 R a , -SO 3 -, - SOR a , -COR a , -CO 2 R a , and -CONR a 2 . Particularly preferred examples of R 1 are -OR a , and - SO 3 -. Each R 2 group is independently selected from H, C 1-10 alkyl, C 3-10 cycloalkyl, C 4-10 cycloalkenyl, aryl, alkylaryl, heteroaryl, heterocycloalkyl, C 2-10 alkenyl, C 2-10 alkynyl, and a covalent bond to the polymer linking moiety. Usually, each R 2 group is independently selected from H, C 1-10 alkyl, C 3-6 cycloalkyl, C 4-6 cycloalkenyl, and C 2-10 alkenyl. Preferably, each R 2 group is independently selected from H and C 1-6 alkyl. Most preferably each R 2 group is H. Any R 1 or R 2 group capable of substitution may be optionally substituted by one or more substituents. The one or more substituents may be present at any suitable position on the R 1 or R 2 group, including (where present) on an R a group. The one or more substituents are typically selected from halogen, oxo, cyano, nitro, hydroxy, C 1-10 alkyl, C 3-10 cycloalkyl, C 4-10 cycloalkenyl, C 2-10 alkenyl, C 2-10 alkynyl, -OR b , -NR b 2 , -COR b , -CO 2 R b , and -CONR b 2 . Each R 1 or R 2 is usually substituted by 0, 1, 2 or 3 substituents, preferably by 0 or 1 substituents. Preferred substituents include halogen, oxo, hydroxy, C1-6 alkyl, C3-6 cycloalkyl, C 2-6 alkenyl, -OR b , -NR b 2 , -COR b , and -CO 2 R b . Particularly preferred substituents include halogen, hydroxy, C 1-4 alkyl, -OR b , -NR b 2 , -COR b , and -CO 2 R b . Where an R 1 or R 2 group, or a substituent thereon, comprises a hydroxy group or a – COOH group, reference to “hydroxy” or “-COOH” includes the deprotonated forms of those groups, i.e. –O- and –COO- respectively. R a and R b are as described above. In a preferred embodiment, each R 1 is independently selected from hydroxy, -OR a , - SO 2 R a , -SO 3 -, -SOR a , -COR a , -CO 2 R a , and -CONR a 2 ; and each R 2 is independently selected from H and C 1-6 alkyl. R a is independently selected from H, C 1-10 alkyl, C 3-6 cycloalkyl, C 4-6 cycloalkenyl, and C 2-10 alkenyl. In this embodiment, each R 1 and R 2 group may be unsubstituted or substituted by one substituent independently selected from halogen, hydroxy, C 1-4 alkyl, -OR b , -NR b 2 , -COR b , and -CO 2 R b wherein R b is selected from H and C 1-4 alkyl. In some embodiments, the fluorophore is fluorescein or a derivative thereof. Fluorescein is a compound having the following structure: However, structural variations on fluorescein are known to act as fluorophores. Thus, where the fluorophore is a derivative of fluorescein or is based on fluorescein, the fluorophore may for instance comprise a species of formula (Fl-C) Wherein R is as defined above and may be optionally substituted as described above. For instance, the fluorophore may comprise a species of formula (Fl-D) R 2 is as defined above. R 3 is selected from cyano, nitro, hydroxy, -OR a , -SO 2 R a , -SO 3 -, -SOR a , -SO 2 NR a , - S(O)(NR a )R a , -NR a 2 , -NR a COR a , -NR a CO 2 R a , -COR a , -CO 2 R a , -CONR a 2 and a covalent bond to the polymer linking moiety. Usually, R 3 is selected from hydroxy, -NR a 2 , -NR a COR a , and -COOH. Preferably, R 3 is selected from hydroxy, -NR a 2 , and -CO 2 R a ; especially hydroxy. Any R 2 or R 3 group which is capable of substitution may be optionally substituted by one or more substituents. The one or more substituents may be present at any suitable position on the R 2 or R 3 group, including (where present) on an R a group. The one or more substituents are typically selected from halogen, oxo, cyano, nitro, hydroxy, C 1-10 alkyl, C 3-10 cycloalkyl, C 4-10 cycloalkenyl, C 2-10 alkenyl, C 2-10 alkynyl, -OR b , -NR b 2 , -COR b , -CO 2 R b , and -CONR b 2 . Each R 2 or R 3 is usually substituted by 0, 1, 2 or 3 substituents, preferably by 0 or 1 substituents. Preferred substituents include halogen, oxo, hydroxy, C 1-6 alkyl, C 3-6 cycloalkyl, C 2-6 alkenyl, -OR b , -NR b 2 , -COR b , and -CO 2 R b . Particularly preferred substituents include halogen, hydroxy, C1-4 alkyl, -OR b , -NR b 2 , -COR b , and -CO 2 R b . R a and R b are as described above. In a preferred embodiment, each R 2 is independently selected from H and C 1-6 alkyl, R 3 is selected from hydroxy, -NR a 2 , and -CO 2 R a , and each R a is independently selected from H, C 1-10 alkyl, C 3-6 cycloalkyl, C 4-6 cycloalkenyl, and C 2-10 alkenyl. In this embodiment, each R 2 and R 3 group may be unsubstituted or substituted by one substituent independently selected from halogen, hydroxy, C 1-4 alkyl, -OR b , -NR b 2 , -COR b , and -CO 2 R b wherein R b is selected from H and C 1-4 alkyl. As with R 1 and R 2 , where an R 3 group, or a substituent thereon, comprises a hydroxy group or a –COOH group, reference to “hydroxy” or “-COOH” (that is, -CO 2 R a where R a is H) includes the deprotonated forms of those groups, i.e. –O- and –COO- respectively. Counter-ion moiety A key function of the counter-ion moiety is to form an ion pair with the deprotonated form of the fluorophore present at near-neutral pH. Thus, the counter-ion moiety carries a positive charge at near-neutral pH. Of course, the counter-ion moiety may be negatively charged at more extreme pH values. In addition to carrying a positive charge at near-neutral pH, the counter-ion moiety is in general stable in aqueous solution. Many suitable water-stable positively-charged cations are known to the skilled person. The counter-ion moiety may be suspended in the polymer matrix of the invention or may be covalently bound to the polymeric support by a polymer linking moiety. It is in general preferred that the counter-ion moiety is covalently bound to the polymeric support. This conveniently allows a large amount of the counter-ion moiety to be present, meaning that an excess can be provided compared to the quantity of fluorophore present, with no limitation due to the solubility of the counter-ion. A covalent bond from the polymeric support to the counter-ion moiety is easily formed where the counter-ion moiety comprises an organic moiety. Thus, in a preferred embodiment, the counter-ion moiety comprises an organic moiety. Suitable organic cations include quaternary ammonium ions. Thus, in a preferred embodiment, the counter-ion moiety comprises a quaternary ammonium ion. For example, the counter-ion moiety may comprise a quaternary ammonium cation of formula (CI-A): Each R 4 group is independently selected from H; or C 1-30 alkyl, C 3-12 cycloalkyl, C 4-12 cycloalkenyl, aryl, alkylaryl, heteroaryl, heterocycloalkyl, C 2-30 alkenyl, C 2-30 alkynyl, and a covalent bond to the polymer linking moiety; or two R 4 groups may be joined together to form a C 3-16 heterocycloalkyl or a C 4-16 heterocycloalkenyl group. Preferably, each R 4 group is independently selected from H, C 1-20 alkyl, C 3-6 cycloalkyl, C 2-20 alkenyl, and a covalent bond to the polymer linking moiety. Particular examples of R 4 are H, C 1-20 alkyl, C 2-20 alkenyl and a covalent bond to the polymer linking moiety. In a typical embodiment, one R 4 group is a covalent bond to the polymer linking moiety and the remaining three R 4 groups are each independently selected from H, C 1-20 alkyl, C 3-10 cycloalkyl, C 4-12 cycloalkenyl, aryl, alkylaryl heteroaryl, heterocycloalkyl, C 2-20 alkenyl, C 2-20 alkynyl. Preferably, one R 4 group is a covalent bond to the polymer linking moiety and the remaining three R 4 groups are each independently selected from H, C 1-20 alkyl, and C 2-20 alkenyl. Any R 4 group capable of substitution may be optionally substituted by one or more substituents. The one or more substituents are typically selected from halogen, oxo, cyano, nitro, hydroxy, C 1-10 alkyl, C 3-10 cycloalkyl, C 4-10 cycloalkenyl, C 2-10 alkenyl, C 2-10 alkynyl, - OR b , -NR b 2 , -COR b , and -CO 2 R b . Each R 4 is usually substituted by 0, 1, 2 or 3 substituents, preferably by 0 or 1 substituents. Preferred substituents include halogen, oxo, hydroxy, C 1-6 alkyl, C 3-6 cycloalkyl, C 2-6 alkenyl, -OR b , -NR b 2 , -COR b , and -CO 2 R b . Particularly preferred substituents include halogen, hydroxy, C 1-4 alkyl, -OR b , -NR b 2 , -COR b , and -CO 2 R b . R b is as defined above. In a preferred embodiment, one R 4 group is a covalent bond to the polymer linking moiety and the remaining three R 4 groups are each independently selected from H, C 1-20 alkyl, and C 2-20 alkenyl. Each R 4 group capable of substitution is unsubstituted or substituted by one substituent independently selected from halogen, hydroxy, C 1-4 alkyl, -OR b , -NR b 2 , - COR b , and -CO 2 R b wherein R b is selected from H and C 1-4 alkyl. In some embodiments, the counter-ion moiety comprises a hexadecyltrimethylammonium ion or a derivative thereof. For instance, the counter-ion moiety may comprise (C 16 H 33 )(CH 3 ) 3 N + ; or (C 16 H 33 )(CH 3 ) 2 R 4 N + , wherein R 4 is a covalent bond to the polymer linking moiety. The counter-ion moiety may be associated with one or more negatively-charged ions other than the negatively-charged fluorophore. These negatively-charged ions are not covalently bound to the counter-ion moiety or the polymer matrix. Such ions are dissociated from the counter-ion moiety when the counter-ion moiety and associated ion(s) are contacted with water. Suitable negative ions include halide ions or hydroxide ions; preferably hydroxide ions. The associated ion may typically be present where the positively-charged counter-ion moiety is introduced to the polymer matrix by suspending a dissolved salt containing the counter-ion moiety and one or more associated negative ions in the polymer matrix. Polymer linking moiety The polymer matrix comprises a polymer linking moiety which forms a covalent attachment between the polymeric support and either the fluorophore or the counter-ion moiety. In some embodiments, the polymer linking moiety is a covalent bond directly joining the polymeric support to the fluorophore or counter-ion moiety. In other embodiments, the polymer linking moiety may comprise one or more intervening atoms. Preferably, the linker is stable to hydrolysis during storage. For instance, it is preferred that the linker is stable with respect to hydrolysis during storage for a period of up to 1, 2, 3, 4, 5 or 6 months. By “stable to hydrolysis” is mean that at least 90%, preferably at least 95%, of the linker does not hydrolyse. The nature of the polymer linking moiety is not particularly limited. The polymer linking moiety may include one or more of a covalent bond, O, S, N, and C. Typically, the polymer linking moiety comprises one or more of a covalent bond, -O-, -S-, -SO 2 -, -SO-, an optionally substituted alkylene, an optionally substituted alkenylene, an optionally substituted alkynylene, and –NR 5 -. For example, the polymer linking moiety may comprise one or more of a covalent bond, -O-, -NR 5 -, -S-, -SO 2 -, -SO-, an optionally substituted C 1-10 alkylene, and an optionally substituted C 2-10 alkenylene. Where the polymer linking moiety comprises more than one of the aforementioned divalent species, the polymer linking moiety typically comprises two or three moieties independently selected from -O-, -NR 5 -, -S-, -SO 2 -, -SO-, an optionally substituted C 1-10 alkylene, and an optionally substituted C 2-10 alkenylene. At least two of the moieties differ. Preferably, the polymer linking moiety comprises one or more moieties independently selected from a covalent bond, -O-, -NR 5 -, and an optionally substituted C1-6 alkylene. Examples of a polymer linking moiety include a covalent bond, -O-, -NH-, -NR 5 -, and C 1-4 alkylene. R 5 is typically selected from H, C 1-10 alkyl, C 3-10 cycloalkyl, C 4-10 cycloalkenyl, aryl, arylalkyl, heteroaryl, heterocycloalkyl, C 2-10 alkenyl, C 2-10 alkynyl, -COR a , -CO 2 R a , and - CONR a 2 . Preferably, R 5 is selected from H, C 1-6 alkyl, C 3-6 cycloalkyl, and C 2-10 alkenyl. Particularly preferably, R 5 is selected from H and C 1-4 alkyl. Examples of R 5 include hydrogen, methyl and ethyl groups. The polymer linking moiety may optionally be substituted by one or more substituents. The one or more substituents may be present at any suitable position on the polymer linking moiety, including (where present) on an R a group. In particular, an alkylene, alkenylene or alkynylene moiety of the polymer linking moiety may be optionally substituted. The one or more substituents are typically selected from halogen, oxo, cyano, nitro, hydroxy, C 1-10 alkyl, C 3-10 cycloalkyl, C 4-10 cycloalkenyl, C 2-10 alkenyl, C 2-10 alkynyl, - OR b , -NR b 2 , -COR b , -CO 2 R b , and -CONR b 2. The polymer linking moiety is usually substituted by 0, 1, 2 or 3 substituents, preferably by 0 or 1 substituents. Preferred substituents include halogen, oxo, hydroxy, C 1-6 alkyl, C 3-6 cycloalkyl, C 2-6 alkenyl, -OR b , - NR b 2 , -COR b , and -CO 2 R b . Particularly preferred substituents include halogen, hydroxy, C 1-4 alkyl, -OR b , -NR b 2 , -COR b , and -CO 2 R b . Preferably the polymer linking moiety is unsubstituted R a and R b are as described above. In a preferred embodiment, the polymer linking moiety comprises one, two or three moieties independently selected from a covalent bond, -O-, -NR 5 -, and an optionally substituted C 1-6 alkylene. R 5 is selected from H and C 1-4 alkyl. In this embodiment, the polymer linking moiety may be unsubstituted or substituted by one substituent independently selected from halogen, hydroxy, C 1-4 alkyl, -OR b , -NR b 2 , -COR b , and -CO 2 R b wherein R b is selected from H and C 1-4 alkyl. Particularly preferred examples of a polymer linking moiety include a covalent bond, -O- and –CH 2 -. For completeness, it is noted that where any of R or R 1 to R 3 is a covalent bond attaching the fluorophore to the polymer linking moiety and the polymer linking moiety is a covalent bond, the fluorophore is bound to the polymeric support by a covalent bond at the respective R or R 1 to R 3 position. Similarly, where R 4 is a covalent bond attaching the counter-ion to the polymer linking moiety and the polymer linking moiety is a covalent bond, the counter-ion moiety is bound to the polymeric support by a covalent bond at the relevant R 4 position. Polymeric support The polymer matrix comprises a polymeric support. A polymeric support is a polymer which may comprise structural units derived from one type of monomer or a plurality of different monomers. In general, at least the majority of the structural units present in the polymeric support are derived from one type of monomer. The polymeric support is generally gas-permeable. Where the polymer matrix is gas- permeable, a gas such as CO 2 may diffuse into the matrix and the polymer matrix may be used as a gas sensor. The polymeric support may further be permeable to liquid, such as water. In some embodiments, which are preferred, the polymeric support comprises a hydrophilic polymer. For instance, the polymeric support may comprise or consist of structural units derived from polymerisation of a hydrophilic monomer. Where the polymeric support comprises structural units derived from polymerisation of a hydrophilic monomer, the polymeric support is itself typically hydrophilic. Suitable examples of a hydrophilic polymer which may be comprised in the polymeric support include a hydrogel, a cellulose derivative, ethyl cellulose, a sol-gel, or a hydrophilic silicone-based polymer. Preferably, the polymeric support comprises a hydrogel. Suitable examples of a hydrogel include polyacrylamide or polyhydroxyethyl methacrylate. In some embodiments, the polymeric support comprises a hydrophobic polymer. For instance, the polymeric support may comprise or consist of structural units derived from polymerisation of a hydrophobic monomer. Where the polymeric support comprises structural units derived from polymerisation of a hydrophobic polymer, the polymeric support is itself typically hydrophobic. A polymeric support which is hydrophobic is particularly suited to CO 2 sensing as it has low permeability, or is impermeable, to aqueous solutions which may comprise acids or bases which may interfere with the sensing of CO 2 . For example, the polymeric support may comprise one or more of polystyrene, a hydrophobic silicone-based polymer, a hydrophobic cellulose derivative, or plasticised ethyl cellulose. Preferred among these is polystyrene. The polymeric support may comprise structural units which include either the fluorophore or the counter-ion moiety. In a preferred embodiment, the polymeric support comprises structural units which include the counter-ion moiety. Inclusion of such structural units in the polymer matrix may be achieved in various ways, as follows. (i) The polymeric support may be produced by co-polymerising (a) a monomer comprising the fluorophore covalently bound to a polymerisable moiety by a polymer linking moiety and (b) one or more other monomers. (ii) The polymeric support may be produced by co-polymerising (a) a monomer comprising the counter-ion moiety covalently bound to a polymerisable moiety by a polymer linking moiety and (b) one or more other monomers. (iii) The polymeric support may be produced by co-polymerising (a) a monomer comprising a polymer linking moiety precursor and a polymerisable moiety and (b) one or more other monomers. A “polymer linking moiety precursor” is a species which can be reacted with a fluorophore precursor or a counter-ion moiety precursor to form a fluorophore or a counter-ion moiety covalently bound to the polymeric support via the polymer linking moiety. The polymer linking moiety precursor is therefore reacted with a fluorophore precursor or a counter-ion moiety precursor to produce a fluorophore or a counter-ion moiety covalently bound to the polymeric support via the polymer linking moiety. Polymer matrix The polymer matrix comprises a fluorophore, a positively charged counter-ion moiety and a polymeric support. However, when the polymer matrix is used in optical sensing as described herein, the polymer matrix must comprise water to mediate the transfer of H + to and from the fluorophore. Accordingly, in some embodiments, the polymer matrix comprises water. Typically, the molar ratio of water (H 2 O) to fluorophore is 1:1 or greater. This ensures that enough H2O is present to interact with each ion pair. For example, the molar ratio of water (H 2 O) to fluorophore may be at least 2:1 or at least 5:1. Preferably, the polymer matrix comprises a known quantity of water, or at least a fixed quantity of water. This can particularly easily be achieved where a membrane is arranged to prevent liquids and hydrogen ions from entering the polymer matrix. The membrane is gas-permeable, and is preferably impermeable to liquids and further preferably impermeable to hydrogen ions. In such cases, the matrix and membrane may be exposed to an aqueous sample. The amount of water in the matrix may undergo slight variation as water vapour moves across the membrane while equilibrium is established. Once equilibrium is established, the amount of water in the sensor will remain fixed while the matrix is exposed to aqueous solutions during use as a sensor, which reduces signal fluctuation and improves accuracy. The molar quantity of water present is typically in excess compared to the molar quantity of fluorophore present. The molar quantity of water present may also be in excess compared to the molar quantity of counter-ion moiety. In some embodiments, the polymer matrix is saturated with water. Optical sensor The polymer matrix is useful in an optical sensor for optical sensing of CO 2 . An optical sensor generates an optical signal which varies with pH, in the presence of CO 2 . The optical signal can be generated by directing excitation light onto the polymer matrix while the polymer matrix contacts a sample (directly or indirectly). Accordingly, described herein is an optical sensor 1 for optical sensing of CO 2, comprising: − a sensing region comprising a polymer matrix 5 as described herein; and − an optical waveguide 3 arranged to direct light onto the sensing region. An optical waveguide is a physical structure having a first end and a second end, capable of guiding electromagnetic waves in the optical region of the spectrum between the first and second ends of the structure. The optical sensor 1 is suitable for detecting the CO 2 content of a sample 9. CO 2 present in a sample is referred to herein as an analyte. The sample 9 may be any fluid, the CO 2 content of which is of interest. Exemplary samples include buffers, and biological samples such as saliva or blood. In a preferred embodiment, the sample 9 is a blood sample, for instance a blood sample taken from a human patient. Thus, in a preferred embodiment, the optical is a sensor for detecting the CO 2 content of blood. Where the sample 9 is a biological sample, the sample 9 is typically an ex vivo sample; that is, the sample 9 is typically outside the human or animal body. The design of an optical sensor 1 comprising the polymer matrix 5 of the invention may be influenced by the nature of the polymeric support, and in particular whether the polymeric support is hydrophobic or hydrophilic. Where the polymeric support is hydrophobic in nature, the polymer matrix 5 may be used to construct a so-called “naked sensor”. Where the polymeric support is hydrophobic, the polymer matrix 5 can be placed in direct contact with an aqueous solution (for instance a biological sample, such as blood), and the aqueous solution will not penetrate the polymer matrix 5, or will penetrate the polymer matrix 5 to a small extent. Further, where the polymeric support is hydrophobic, it will advantageously resist adsorption of hydrophilic proteins. In such cases, it is not necessary to provide an additional layer to prevent penetration of the aqueous solution or proteins into the polymer matrix 5. A naked sensor (which does not comprise a membrane arranged to prevent penetration of an aqueous sample into the polymer matrix 5) has various advantages. A membrane can slow the passage of analyte and can act as a reservoir for analyte; this increases the response time of the sensor. Naked sensors therefore have exceptionally rapid response times. There are also especial advantages to optical sensors constructed using a hydrophilic polymer matrix. In use as an optical sensor, the polymer matrix 5 must contain water (to enable the formation of carbonic acid during the detection of CO 2 , and the transport of H + in the detection of acid). If the water content is too low, not all CO 2 may be able to generate carbonic acid. Thus, not all CO 2 present is available to cause protonation of the fluorophore and hence to alter the absorption or emission characteristics of the polymer matrix 5. Thus, insufficient water content may lead to an optical sensor whose optical output does not accurately correspond to the CO 2 content of the sample 9 under test. Where a hydrophobic polymer matrix 5 is used, it is difficult to ensure that the polymer matrix 5 contains enough water to enable the sensing chemistry. It is therefore convenient to use a hydrophilic polymer matrix 5 in the optical sensor 1 as it can readily become saturated with water. Where a hydrophilic polymer matrix 5 is contacted with water, it will take up and hold onto a specific amount of water. A hydrophilic polymer matrix 5 (e.g. a hydrogel) may be saturated with water. If a hydrophilic polymer matrix 5 is placed into direct contact with an aqueous solution (for instance a biological sample, such as blood), the aqueous solution will penetrate the hydrophilic polymer matrix 5. Accordingly, where the optical sensor 1 comprises a hydrophilic polymer matrix 5, the optical sensor 1 typically also comprises a hydrophobic membrane 7 arranged such that the sample 9 contacts the polymer matrix 5 through the hydrophobic membrane 7. Thus, the optical sensor 1 comprising a hydrophilic polymer matrix 5 may comprise a hydrophobic membrane 7 arranged to allow analyte to enter the polymer matrix 5 through the hydrophobic membrane 7. Where an optical sensor comprises a hydrophilic polymer matrix 5 and a gas- permeable hydrophobic membrane 7, and the optical sensor is placed in contact with an aqueous solution, gaseous water (water vapour) may pass across the gas permeable hydrophobic membrane 7. However, equilibrium is maintained and so the quantity of water present in the polymer matrix 5 remains approximately constant. Accordingly, an optical sensor comprising a hydrophilic polymer matrix 5 is less sensitive to inaccuracies arising from the presence of insufficient water, or varying water content. In some embodiments, therefore, the optical sensor 1 comprises a membrane 7. Generally, the membrane 7 is gas-permeable. The membrane 7 may further be liquid- permeable. Typically, where the optical sensor 1 comprises a membrane 7, the optical sensor 1 is configured to allow an analyte to enter the sensing region through the membrane 7. In such embodiments the membrane 7 is typically hydrophobic and, preferably, the polymer matrix 5 is hydrophilic. In some embodiments, the polymer matrix 5 may penetrate the membrane 7. The membrane 7 may be disposed within or partially within the polymer matrix 5. Suitable membranes, particularly gas-permeable membranes, are known in the art. Such membranes include dialysis membranes and microporous membranes; dialysis membranes are preferred. The optical sensor 1 is configured specifically for the detection of CO 2 . Thus, in a particularly preferred embodiment, there is provided an optical sensor 1 for optical sensing of CO 2 , comprising: − a sensing region comprising a polymer matrix 5 as described herein, wherein the sensing region further comprises a hydrophobic membrane 7, and the sensor is configured to allow an analyte to enter the sensing region through the hydrophobic membrane 7; and − an optical waveguide 3 arranged to direct light onto the sensing region. The analyte is CO 2 . In an alternative particularly preferred embodiment, there is provided an optical sensor 1 for optical sensing of CO 2 , comprising: − a sensing region comprising a polymer matrix 5 as described herein, wherein the polymer matrix is a hydrophobic polymer matrix; − the sensing region optionally further comprises a hydrophobic membrane 7, and the sensor is configured to allow an analyte to enter the sensing region through the hydrophobic membrane 7; and an optical waveguide 3 arranged to direct light onto the sensing region In use, the hydrophobic membrane 7 is disposed between the sample 9 under test and the sensing region. The hydrophobic membrane 7 therefore acts as a barrier to liquids and can prevent liquids (particularly water) in the sample 9 under test from entering the sensing region. Preferably, therefore, the hydrophobic membrane 7 is impermeable to liquids. This prevents any acid in the sample 9 from entering the sensor. However, gaseous or dissolved CO 2 in the sample 9 under test can diffuse across the hydrophobic membrane 7 into the sensing region, as the hydrophobic membrane 7 is gas-permeable. Thus, where the sensor comprises a hydrophobic membrane 7, the optical sensor 1 specifically senses CO 2 . Moreover, the sensor does not suffer from interference from species contained in a liquid sample 9 such as acids or alkalis. Particularly preferably, the hydrophobic membrane 7 is impermeable to hydrogen ions. In this configuration, it is preferred that the polymer matrix 5 is hydrophilic, for the reasons explained above. The hydrophilic polymer matrix 5 can easily trap the water needed to enable the formation of carbonic acid and assist the functioning of the sensor. Thus, in a particularly preferred embodiment, the optical sensor 1 is an optical sensor 1 for optical sensing of CO 2 , comprising: − a sensing region comprising a polymer matrix 5 as described herein, wherein the polymeric support comprises a hydrophilic polymer; and the sensing region further comprises a gas-permeable hydrophobic membrane 7 which is impermeable to liquids and hydrogen ions; and the sensor is configured to allow CO 2 to enter the sensing region through the hydrophobic membrane 7; and - an optical waveguide 3 arranged to direct light onto the sensing region. Thus, in this embodiment, the polymer matrix 5 is preferably hydrophilic. Alternatively, however, in this embodiment, the polymer matrix 5 may comprise a hydrophobic polymer and may be hydrophobic. A diagram of an optical sensor 1 in use is shown in Figure 3; in the embodiment shown, the optical sensor 1 comprises a gas-permeable membrane 7 but this is not necessary. The optical waveguide 3 is arranged to direct excitation light onto a sensing region which includes the polymer matrix 5. In use, the sensing region contacts a sample 9. A gas- permeable membrane 7 is disposed on the polymer matrix 5 and configured such that an analyte (CO 2 ) present in the sample 9 may pass through the membrane 7 (if present) in order to contact the polymer matrix 5. The fluorophore will absorb the excitation light and may emit light; light emitted by the fluorophore passes through the optical waveguide 3. The absorption and emission spectra will depend on the pH of the sample 9, which determines the extent of protonation of the fluorophore. The waveguide may be any optically transmissive material. Typically, the waveguide comprises or consists of an optical fibre; alternatively, a transparent optical window may be used. Optical fibres use total internal reflection to prevent light being lost from the fibre. This means light can be efficiently carried to and from the fluorophore, improving the signal and providing for higher-quality and more reliable measurements. Optionally, the optical sensor 1 may comprise a reflector configured to reflect light emitted by the fluorophore into the optical waveguide 3. The reflector, where present, increases the proportion of light emitted by the fluorophore which can be collected by the waveguide and subsequently detected. The reflector may comprise a layer deposited over the polymer matrix 5, for instance over a membrane 7 disposed on the polymer matrix 5. Suitable materials which may be used as reflectors include polysulfones (PSU), polyethersulfones (PESU), and polyphenylsulfones (PPSU). Polysulfones are preferred. It would also be possible to use other reflecting compounds such as silicon containing titanium oxide, or barium sulfate. The optical sensor 1 comprising a sensing region and an optical waveguide 3, and optionally also comprising membrane 7 and/or a reflector may be referred to as a sensor probe. The optical sensor 1 may further comprise a light source configured to provide excitation light to the fluorophore. The light source may be any light source capable of emitting light at the wavelengths and intensities required to excite the fluorophore. For example, the light source may comprise a laser diode. The optical sensor 1 may further comprise a detector configured to detect light emitted by the fluorophore through the optical waveguide 3. The detector may be any device capable of producing a signal in response to receiving light at the wavelengths emitted by the fluorophore. For example, the detector may comprise a charge-coupled device, an active- pixel sensor, a photodiode, or photoresistor. Some or all of the optical sensor 1 may be disposable. This is convenient in clinical contexts, where optical sensor 1 may be contacted with a biological sample inside or taken from a patient. In such cases, the part of the optical sensor 1 which contacts the biological sample should be sterile and cannot be reused between patients. For example, the sensor probe may be disposable and not the detector or light source if present. In such a case, the optical sensor 1 may further comprise a connector interface configured to connect the optical waveguide 3 to the light source and the detector. The optical sensor 1 may form part of an optical sensing system which further comprises a control system. The control system may be configured to cause the light source to emit light, and optionally to activate the detector if necessary. The optical sensing system may further comprise an analysis system. The analysis system may be configured to determine whether carbonic acid is present in the sample 9 under test. In particular, the analysis system may be configured to determine the CO 2 concentration of the sample 9 under test. The optical sensor 1 and optical sensing system described herein can be used to provide rapid, real-time measurements of the CO 2 content of a sample 9. This is particularly desirable in blood gas sensing. It is important to monitor the CO 2 content of a patient’s blood during procedures such as dialysis or surgery, particularly heart bypass surgery, as CO 2 content can vary rapidly with dangerous consequences for the patient. Accordingly, the optical sensing system may be an in-line blood gas sensing system comprising an optical sensor 1 as described herein, wherein the in-line blood gas sensing system is configured to direct blood from the body of the patient outside the body and into contact with the sensing region of the optical sensor 1. Usually, the in-line blood gas sensing system is further configured to return the blood back into the body of the patient. Generally, the in-line blood gas sensing system additionally comprises an optical sensor 1 as described herein, a blood line, and a pump, wherein the blood line is configured to direct blood from the body of the patient outside the body and into contact with the sensing region of the optical sensor 1; and to return the blood into the body of the patient. The pump is configured to pump blood along the blood line. In one example, the invention provides a dialysis system comprising an in-line blood gas sensing system as described herein. In another example, the invention provides a cardiac bypass system comprising an in-line blood gas sensing system as described herein. Method for producing a polymer matrix The polymer matrix of the invention may be produced by any suitable method. For instance, it would be possible to generate a polymer matrix wherein the fluorophore or the counter-ion moiety is suspended within the polymer matrix already, by performing a polymerisation reaction to produce a polymeric support in the presence of the fluorophore or counter-ion moiety. However, it is convenient to first generate the polymeric support having a fluorophore or counter-ion moiety covalently bound thereto, and then to provide the fluorophore or counter-ion moiety (whichever is not bound to the polymeric support) within the matrix. This method allows any waste products or leftover starting materials from the generation of the polymeric support to be washed away. Thus, provided herein is a method of producing a polymer matrix for optical sensing, the method comprising: (i) providing a polymeric support, wherein either a fluorophore or a counter- ion moiety is covalently bound to the polymeric support by a polymer linking moiety; and (ii) suspending either a fluorophore or a counter-ion moiety, whichever is not covalently bound to the polymeric support via the polymer linking moiety, in the polymeric support. Generally, the polymer matrix for optical sensing produced by the method of the invention is a polymer matrix as described herein. Step (i) may comprise covalently attaching a fluorophore or a counter-ion moiety to a polymeric support. For instance, step (i) may comprise: - generating a polymeric support by polymerising a monomer; and - reacting the polymeric support with a fluorophore precursor comprising a fluorophore, or with a counter-ion precursor comprising a counter-ion moiety, to generate a fluorophore or a counter-ion moiety covalently bound to the polymeric support by a polymer linking moiety. A suitable monomer is any polymerisable moiety, typically a hydrophobic polymerisable moiety or a hydrophilic polymerisable moiety. Examples include styrene or hydrogel monomers. In another example, step (i) may comprise: - functionalising a polymeric support; and - reacting the functionalised polymeric support with a fluorophore precursor comprising a fluorophore, or with a counter-ion precursor comprising a counter- ion moiety, to generate a fluorophore or a counter-ion moiety covalently bound to the polymeric support by a polymer linking moiety. This method may be useful where an existing polymer is desired as the polymeric support, for example cellulose or a derivative thereof. Conveniently, the polymeric support may be directly produced incorporating the fluorophore or counter-ion moiety. In such an embodiment, step (i) comprises co- polymerising a fluorophore monomer or a counter-ion monomer with one or more other monomers. Preferably, step (i) comprising co-polymerising a counter-ion monomer with one or more other monomers. By a “fluorophore monomer” is meant a polymerisable monomer comprising the fluorophore. A suitable “fluorophore monomer” is a fluorophore as described herein wherein the covalent bond attaching the fluorophore to a polymer linking moiety is replaced by a polymerisable moiety, typically an alkenyl or alkynyl group. By a “counter-ion monomer” is meant a polymerisable monomer comprising the counter-ion moiety. A suitable “counter-ion monomer” is a counter-ion moiety as described herein wherein the covalent bond attaching the counter-ion moiety to a polymer linking moiety is replaced by a polymerisable moiety, typically an alkenyl or alkynyl group. An exemplary counter-ion monomer is a quaternary ammonium cation of formula (CI-AM): PL is a polymerisable moiety. Preferably, PL is an alkenyl or alkynyl group. For instance, PL may be a C 2-10 alkenyl group or a C 2-10 alkynyl group. Particularly preferably, PL is a C 2-6 alkenyl group. Each R 6 group is independently selected from H; or C 1-30 alkyl, C 3-12 cycloalkyl, C 4-12 cycloalkenyl, aryl, alkylaryl, heteroaryl, heterocycloalkyl, C 2-30 alkenyl, and C 2-30 alkynyl; or two R 8 groups may be joined together to form a C 3-16 heterocycloalkyl or a C 4-16 heterocycloalkenyl group. Preferably, each R 6 group may be independently selected from H, C 1-10 alkyl, C 3-6 cycloalkyl, and C 2-10 alkenyl. The most preferred examples of R 6 are H and C 1-6 alkyl. PL and/or any R 6 group capable of substitution may be optionally substituted by one or more substituents. The one or more substituents may be present at any position capable of substitution. The one or more substituents are typically selected from halogen, oxo, cyano, nitro, hydroxy, C 1-10 alkyl, C 3-10 cycloalkyl, C 4-10 cycloalkenyl, C 2-10 alkenyl, C 2-10 alkynyl, - OR b , -NR b 2 , -COR b , -CO 2 R b , and -CONR b 2 . PL and R 6 are usually substituted by 0, 1, 2 or 3 substituents, preferably by 0 or 1 substituents. Preferred substituents include halogen, oxo, hydroxy, C 1-6 alkyl, C 3-6 cycloalkyl, C 2-6 alkenyl, -OR b , -NR b 2 , -COR b , and -CO 2 R b . Particularly preferred substituents include halogen, hydroxy, C 1-4 alkyl, -OR b , -NR b 2 , -COR b , and -CO 2 R b . Most preferably Pl and R 6 are unsubstituted. R b is as described above. In a preferred embodiment, PL is a C 2-6 alkenyl group and each R 6 group is independently selected from H and C 1-6 alkyl. PL and R 6 are each unsubstituted or substituted by one substituent independently selected from halogen, hydroxy, C 1-4 alkyl, - OR b , -NR b 2, -COR b , and -CO 2 R b wherein R b is selected from H and C 1-4 alkyl. Intermediate steps may be performed between step (i) and step (ii). For instance, the polymeric support having a fluorophore or a counter-ion moiety covalently bound thereto may be washed before step (ii) is performed. Step (ii) involves suspending a fluorophore or a counter-ion moiety in the polymer matrix. For example, step (ii) may involve dissolving the fluorophore (e.g. a salt form of the fluorophore) in a coating solution such as water or an aqueous solution, and contacting the polymeric support produced in step (i) with the coating solution comprising the dissolved fluorophore. Alternatively, step (ii) may involve dissolving the counter-ion moiety (e.g. a salt comprising the counter-ion moiety, typically a hydroxide salt of the counter-ion moiety) in a coating solution such as water or an aqueous solution, and contacting the polymeric support produced in step (i) with the coating solution comprising the dissolved counter-ion moiety. Further steps may be performed after step (ii). For instance, the method of producing a polymer matrix may further comprise drying the polymer matrix to remove excess water. Method of producing an optical sensor The polymer matrix may be used to provide an optical sensor. Thus, described herein is a method of producing an optical sensor, the method comprising: (i) providing an optical waveguide; (ii) disposing a polymer matrix as described herein on the optical waveguide; and (iii)optionally disposing a membrane on the polymer matrix. Generally, the optical sensor produced by this method is an optical sensor 1 as described herein. For example, the membrane is typically a gas-permeable membrane and preferably also hydrophobic. Disposing a polymer matrix onto the optical waveguide does not always require the polymer matrix to be in direct contact with the optical waveguide. There may, for instance, be an intervening coating present on the optical waveguide. Step (ii) may in some cases include providing a polymer matrix as described herein, comprising both a fluorophore and a counter-ion moiety (one of which is covalently attached to the polymeric support) and then disposing that polymer matrix on the optical waveguide. The method of providing the polymer matrix may be as described herein. For instance, the method of producing an optical sensor may comprise: (i) providing an optical waveguide; (ii) providing a polymeric support, wherein either a fluorophore or a counter-ion moiety is covalently bound to the polymeric support by a polymer linking moiety, and suspending either a fluorophore or a counter-ion moiety, whichever is not covalently bound to the polymeric support via the polymer linking moiety, in the polymeric support, to produce a polymer matrix as described herein; and disposing the polymer matrix on the optical waveguide. Alternatively, step (ii) may involve generating a polymer matrix as described herein in situ, on the optical waveguide. The method of generating the polymer matrix may be as described herein. For instance, the method of producing an optical sensor may comprise: (i) providing an optical waveguide; (ii) (a) disposing a polymeric support on the optical waveguide, wherein either a fluorophore or a counter-ion moiety is covalently bound to the polymeric support by a polymer linking moiety; and (b) suspending either a fluorophore or a counter-ion moiety, whichever is not covalently bound to the polymeric support via the polymer linking moiety, in the polymeric support. In a typical example, the method of producing an optical sensor may comprise: (i) providing an optical waveguide; (ii) (a) contacting the optical waveguide with a solution comprising a fluorophore monomer or a counter-ion monomer with one or more other monomers and initiating polymerisation, to produce a polymeric support disposed on the optical waveguide wherein either a fluorophore or a counter-ion moiety is covalently bound to the polymeric support by a polymer linking moiety; and (b) suspending either a fluorophore or a counter-ion moiety, whichever is not covalently bound to the polymeric support via the polymer linking moiety, in the polymeric support, to produce a polymer matrix as described herein. A washing step may be performed between (ii)(a) and (ii)(b), to remove unreacted monomers and/or waste products. It may be desirable to incorporate a membrane into the optical sensor during its production. This can be done after the polymer matrix of the invention is generated and is disposed on the sensor. For instance, the method of producing an optical sensor may comprise: (i) providing an optical waveguide; (ii) disposing a polymer matrix as described herein on the optical waveguide; and (iii) subsequently disposing a membrane on the polymer matrix. In other embodiments, the membrane may be incorporated at an earlier point in the procedure, for instance before the polymer matrix is generated. For example, in some embodiments the method of producing an optical sensor may comprise: (i) providing an optical waveguide; (ii) (a) contacting the optical waveguide and a membrane with a solution comprising a fluorophore monomer or a counter-ion monomer with one or more other monomers, and initiating polymerisation, to produce a polymeric support disposed on the optical waveguide wherein either a fluorophore or a counter-ion moiety is covalently bound to the polymeric support by a polymer linking moiety; and (b) suspending either a fluorophore or a counter-ion moiety, whichever is not covalently bound to the polymeric support via the polymer linking moiety, in the polymeric support. The solution comprising a fluorophore monomer or a counter-ion monomer with one or more other monomers may penetrate the membrane. For instance, the membrane may be soaked with said solution. The method of producing an optical sensor may comprise one or more additional steps after (i) and (ii), as follows. These additional steps may be performed in any order. The method of producing an optical sensor may further comprise a step of contacting the optical sensor with water (in the form of water vapour and/or more preferably liquid water). This allows the water content within the sensor to equilibrate with the external water. This ensures that, when the sensor is contacted with a sample comprising water (for instance an aqueous sample such as an aqueous solution, blood or saliva) the uptake or loss of water by the optical sensor is minimised. The method of producing an optical sensor may further comprise a step of disposing a reflector on the optical sensor. For instance, the method of producing an optical sensor may comprise a step of disposing a layer comprising one or more of polysulfone (PSU), polyethersulfone (PESU), and polyphenylsulfone (PPSU) on the polymer matrix. Where a gas-permeable membrane is disposed on the polymer matrix, the method of producing an optical sensor may comprise a step of disposing a layer comprising one or more of polysulfone (PSU), polyethersulfone (PESU), and polyphenylsulfone (PPSU) on the gas- permeable membrane. Polysulfones are preferred. The method of producing an optical sensor may further comprise incorporating a light source and/or a detector. The method may also comprise incorporating a control system and/or an analysis system. Method of measurement The sensor described herein can be used to detect CO 2 in a sample. The optical sensor can further be used to determine the amount of CO 2 in a sample. This can be accomplished by a simple intensity measurement. For instance, the optical output of the optical sensor (usually the light emitted by the fluorophore) may be calibrated using one or more solutions of known CO 2 content. Thus, the intensity I 1 of fluorescent emission at a wavelength λ1 can be determined as a function of CO 2 content. Alternatively or additionally, the absorbance A 1 at a wavelength λ 1’ can be determined as a function of CO 2 content. λ 1 and λ 1’ are the wavelengths at which the protonated form of the fluorophore emits/absorbs light, respectively; a calibration may also be performed for the deprotonated form. The emission (at λ 1 ) or absorbance (at λ 1’ ) occurring when excitation light is provided to the optical sensor contacting a sample is measured, and can then be used to determine the CO 2 content of the sample. Although the sensor may be operated in absorption or emission modes, it is preferred to use the sensor to detect fluorescent emission. This is because the path length of light through the sensing region of the optical sensor is generally too small to allow strong absorbance. The invention therefore provides a method of measuring the CO 2 content of a sample, the method comprising: (i) contacting an optical sensor as described herein with the sample; (ii) providing excitation light to the sensing region through the optical waveguide; and (iii) detecting the intensity I 1 of light emitted from the fluorophore at a first wavelength λ 1 through the optical waveguide. Contacting the sensor with a sample typically involves flowing the sample over the sensing region of the sensor or dipping the sensing region of the sensor into the sample. Alternatively, the invention provides a method of measuring the CO 2 content of a sample using absorption methodology, the method comprising: (i) contacting an optical sensor as described herein with the sample; (ii) providing excitation light to the sensing region through the optical waveguide; (iii) detecting light returning from the sensing region through the optical waveguide; and (iv) determining the absorbance A 1 of the fluorophore at a first wavelength λ 1’ . The method may comprise an initial step of calibrating the sensor. The method may comprise a subsequent calculation step, involving comparing the detected emission intensity I 1 or absorbance A 1 to a calibration curve in order to determine the CO 2 content of the sample. A single intensity measurement is advantageously simple. The accuracy of the result may be improved by taking one or more further measurements. Thus, in some embodiments, the method of measuring the CO 2 content of a sample comprises: (i) contacting an optical sensor as described herein with the sample; (ii) providing excitation light to the sensing region through the optical waveguide; (iii) detecting the intensity I 1 of light emitted by the fluorophore at a first wavelength λ 1 through the optical waveguide; and (iv) detecting the intensity I 2 of light emitted by the fluorophore at a second wavelength λ 2 through the optical waveguide. This method may further comprise, for instance, determining CO 2 content based on each of I 1 and I 2 and then taking an average (for instance a mean) of the two values in order to arrive at a mean value for the CO 2 content of the sample. Intensity measurements relying on absolute intensity are subject to inaccuracies occurring when fluorophore moieties are photobleached. Where a fluorophore moiety is photobleached, the total intensity of fluorescence emission decreases, inaccurately suggesting a change in concentration of the analyte. Thus, it is particularly preferred to use a ratiometric measurement to measure the CO 2 content of a sample. A ratiometric measurement method reduces or avoids errors occurring due to photobleaching of the optical sensor between the calibration process and the measurement. A ratiometric method can be used where the protonated and deprotonated forms of the fluorophore each undergo fluorescent emission at differing wavelengths, and/or where the protonated and deprotonated forms of the fluorophore absorb light at differing wavelengths. The ratiometric method involves comparing the intensity of emission (or absorbance) of the protonated and deprotonated forms, and using the ratio of those two emission intensities (or absorbances) to determine the relative quantities of protonated and deprotonated fluorophore. Thus, the CO 2 content of the sample may be determined. Determination of the CO 2 content of a sample can be performed either by calibrating the optical sensor (i.e. by determining the output of the sensor when contacted with one or more samples of known CO 2 content). Alternatively, the CO 2 content of a sample can be determined based on a mathematical model of the system. As with a simple intensity measurement, a ratiometric measurement can be performed in absorption or emission mode. However, it is preferred to perform the measurement in emission mode as the path length of light through the sensing region of the optical sensor is generally too short in practice to allow significant absorption. Accordingly, the invention provides a method of measuring the CO 2 content of a sample, the method comprising: (i) contacting an optical sensor as described herein with the sample; (ii) providing excitation light to the sensing region through the optical waveguide; (iii)detecting the intensity I 1 of light emitted by the fluorophore at a first wavelength λ 1 through the optical waveguide; (iv) detecting the intensity I 2 of light emitted by the fluorophore at a second wavelength λ 2 through the optical waveguide; and (v) comparing I 2 to I 1 . The method may comprise an initial step of calibrating the sensor. The method may comprise a subsequent calculation step, involving comparing the detected emission intensity ration I 1 :I 2 to a calibration curve in order to determine the CO 2 content of the sample. Each optical measurement is performed rapidly, typically taking less than a second. Moreover, the sample volume of the sensing region of the sensor is very small, and typically does not act as a reservoir for the sample. Consequently, the sensor has a very rapid response time. Further, the optical sensor does not substantially degrade or deplete the sample as it does not affect the sample save to remove a very small amount of the analyte therefrom. Accordingly, the sensor may be placed in contact with a biological sample (such as saliva or blood) which is inside the body or a patient or more usually is removed from and returned to the body of a patient. All these factors mean that the sensor is extremely well-suited to perform continuous measurements on a sample, particularly a biological sample, for long periods of time. Accordingly, in some embodiments, the method of measuring the CO 2 content of a sample is a method of continuously measuring the CO 2 content of the sample, wherein: − the optical sensor is continuously exposed to the sample for an exposure period of at least ten minutes; − excitation light is provided to the sensing region continuously or intermittently throughout the exposure period through the optical waveguide; and − the intensity I 1 of emission of the fluorophore at a first wavelength λ 1 , and optionally the intensity I 2 of emission of the fluorophore at a second wavelength λ 2 , is/are detected continuously or intermittently throughout the exposure period through the optical waveguide. The exposure period is preferably at least 1 hour. For instance, the exposure period may be at least 100 hours, typically up to 144 hours (7 days). The measurement method may therefore be used where it is important to monitor a biological sample (such as blood) for long periods, for instance during dialysis or open-heart surgery. Example A positively-charged counter-ion moiety covalently bound to a polymeric support was produced as follows. Step (a) Styrene (1.0 mass eq) and vinylbenzyl chloride (0.052 mass eq) were dissolved in toluene (55.7 vol). The solution was stirred and nitrogen bubbled through the solution for 30 minutes using a nitrogen dip tube. The nitrogen dip tube was then removed and the initiator AIBN (0.002 mass eq) was added; the solution was then heated to 60 °C for 18 hours. The resulting polymer, poly(styrene-co-vinylbenzyl chloride) was then precipitated out of solution by addition of methanol to give crude material which was twice dissolved in chloroform and precipitated with methanol. The resultant precipitate was then dried under high vacuum. Step (b) The poly(styrene-co-vinyl benzyl chloride) (1.0 eq), a polymeric support, was dissolved in anhydrous DMF (20 vol) and stirred under nitrogen until fully dissolved. 45% aqueous trimethylamine (4.4 vol), a counter-ion moiety precursor, was added and the resulting mixture stirred at RT overnight. After stirring for 20 hr, an IPC was taken which was consistent with the formation of a new product. Solvents were removed under vacuum at 60°C. The resultant product was poly(styrene-co-(vinylbenzyl)trimethylammonium hydroxide), containing 5wt% vinylbenzyl)trimethylammonium hydroxide).

Step (c)

The poly(styrene-co-(vinylbenzyl)trimethylammonium hydroxide) (500 mg) was dissolved in DCM (50 ml) and washed 3 times with NaOH (0.1 M, 50 ml). The solvent was then removed under vacuum

A reaction scheme involving steps (a) to (c) is shown below.

A polymer matrix further comprising a fluorophore moiety was then prepared by dissolving Poly(styrene-co-(vinylbenzyl)trimethylammonium hydroxide) (5wt% vinyl benzyl)trimethylammonium hydroxide) (30 mg) in dichloromethane (600 μl). The fluorophore moiety HTPS (2 μl, 10 mg.ml -1 in water) was added and the mixture was shaken resulting in the HTPS being extracted in the organic phase.

A sensor was then prepared by dipping the tip of an optical waveguide (specifically an optical fibre) into this solution and allowing the solution to dry, forming a polymer matrix on the tip of the optical fibre. The sensor was tested by being placed in an environment containing CO 2 .

Binding curves and performance data from these fibres can be seen in Figures 4 and 5. Figure 4 is a binding curve showing the binding of CO 2 to a polymer matrix in a sensor of the invention as a function of pCO 2 . The proportion of CO 2 which binds to the matrix matches very closely to the predicted values, showing that the sensor efficaciously detects CO 2 . Figure 5 shows the actual pCO 2 values and pCO 2 values measured by a sensor according to the invention over a period of five hours. Also shown in this figure is the temperature, which was unchanged between 35 and 40 °C over the test period. It is evident that the actual pCO 2 value (partial pressure of CO 2 in the sample under test), shown by a dotted line, matches closely with the value detected using the sensor of the invention (shown with a solid line). The accuracy of the sensor according to the invention is excellent. It was found that the sensor could detect pCO 2 values over the tested range (0.0 to 349.3 mmHg, 0-50%) with an accuracy of within 3.67%.