A capsule adapted to be introduced into the digestive system and gastrointestinal (Gl) tract of a mammal which consists of a capsule shaped container consisting of a wall material capable of being bio compatible with the digestive system and being adapted to protect the electronic and sensor devices contained in the capsule. The capsule contains gas composition sensors operable at several temperature points for a short duration, a temperature sensor, a micro controller, a power source and a wireless transmission device. The capsule wall incorporates gas permeable membranes adjacent said gas sensors. The microprocessor is programmed to receive data signals from the sensors and convert the signals into gas composition and concentration data and temperature data suitable for transmission to an external computing device.