Various embodiments disclosed herein relate to an implantable device, systems, and methods related thereto, that includes at least one sensor and/or therapeutic agent delivery depot. In one embodiment, the system and device include means for detecting general or specific biological agents in a subject's intestinal tract, and utilizing the information from the detection for determining the timing and content of any therapeutic treatment needed by the subject.