A pH sensor based on optical fibres was developed. The analysed sample is the interstitial fluid drawn from the adipose tissue by means of a microdialysis catheter. The pH sensing layer is constituted by a pH indicator, phenol red, directly immobilised onto the internal wall of a glass capillary. The interrogation of the glass capillary is performed by an optoelectronic unit, developed in our laboratory, which makes use of a light emitting diode at 590 nm as source and a photodiode as detector. A suitable animal model was developed and in-vivo tests on pigs were carried out.