An Ingestible Pill With CMOS Fluorescence Sensor Array, Bi-Directional Wireless Interface and Packaged Optics for