Pill endoscopy involves swallowing a pill-sized camera to take pictures of the gastrointestinal tract as it passes through the body. It was invented to address issues with traditional endoscopy methods like pain, risk of injury, and procedure time. The pill camera is about the size of a vitamin and contains a lens, light source, battery, antenna, and image sensor to capture high-quality video footage as it travels through the digestive system. Doctors can then review the recorded images to diagnose conditions like Crohn's disease, tumors, or bleeding without painful endoscopic procedures. While effective, pill endoscopy is also expensive, may not be suitable for some patients, and batteries limit imaging time.