The present invention provides a device and system useful as a new diagnostic modality to differentiate the etiology of heartburn/chest pain by measuring esophageal blood flow. Furthermore, the device and system of the present invention can be used as a new diagnostic modality to differentiate the etiology of abdominal pain by measuring blood in the wall of gastrointestinal tract including rectum and colon blood flow.