Smart pills are essentially ingestible sensors that are swallowed and can record various physiological measures. They can also be used to confirm that a patient has taken his or her prescribed medication, and can measure the effects of the medication.