After being swallowed, the devices could offer continuous monitoring of patients who are sick or at risk of hypothermia.