The present invention provides a sensor for locating within a urinary drainage bag, the sensor comprising an agent held by a p H-sensitive release material; wherein the agent is a diagnostic marker and wherein the p H-sensitive release material is configured to release the agent when the p H-sensitive release material is exposed a p H above 7, together with a urinary drainage bag comprising the same. Methods for preventing catheter blockage using the sensor and methods for manufacturing the sensor are also provided.La présente invention concerne un capteur destiné à être placé à l'intérieur d'un sac de drainage urinaire, le capteur comprenant un agent maintenu par un matériau de libération sensible au pH; l'agent étant un marqueur de diagnostic et le matériau de libération sensible au pH étant configuré pour libérer l'agent lorsque le matériau de libération sensible au pH est exposé à un pH au-dessus de 7, conjointement avec un sac de drainage urinaire comprenant celui-ci. L'invention concerne également des procédés pour empêcher un blocage de cathéter à l'aide du capteur et des procédés de fabrication du capteur.