. "A device according to claim 21, wherein the sensor is a pH sensor for sensing the pH of a body fluid of the subject and controlling the delivery of the drug in response thereto." . . .