A flexible ingestible sensor has been devised that could help doctors to diagnose problems caused by a slowdown of food flowing through the digestive tract. The sensors could also be used to detect food pressing on the stomach, helping doctors to monitor food intake by patients being treated for obesity.