In one embodiment, a first application detects a user’s activity. 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. The external housing comprises a single piece of molded plastic.