A device may be implanted subcutaneously with an attached catheter inserted within, e.g., the peritoneal cavity of a subject. The catheter and/or device may also be inserted into another space, e.g., subcutaneous, vascular, peritoneal, cerebrospinal, pleural spaces, etc. The peritoneal fluid which normally collects and/or flows through the peritoneal cavity may be detected by the catheter and analyzed via the device to detect the concentration of glucose within the fluid.