When performing an endoscopic procedure, it is possible that a loop might be formed by the endoscopic tubing inside the patients body. This condition is potentially dangerous and poses a threat to the safety of the patient if the doctor who performs the procedure is unaware of the situation. This paper presents a technique for detecting the formation of an endoscopic loop using fiber optics technology. A custom-made loop detecting device using different configurations of optical fiber wires was developed. The effectiveness of each configuration in detecting the formation of a loop was studied.This loop detecting device was designed such that it can be embedded into an endoscope without increasing the diameter of the endoscopic tubing. If a loop is detected, the device can transmit a warning signal so the doctor who performs the endoscopic procedure can adjust his or her operation to avoid harming the patient.