Ingestible electronic devices could transform gastrointestinal medicine by combining diagnostic and therapeutic functions into a single miniature device. But challenges related to device miniaturization, power-efficient integrated circuit design and data security remain to be addressed.