In a method for positioning linear array of electrodes (LAE) mounted on distal end section of elongated flexible member in patient's respiratory airways (PRA) at level of diaphragm, a length of the member pre-determined to position LEA at the level of the diaphragm is inserted through PRA. Signals representative of an electrical activity of the diaphragm (EAdi) are detected through LAE, presence/absence of ECG signal components is detected in EAdi signals, and position of LAE in PRA is detected in response to presence/absence of ECG signal components in EAdi signals. Lower esophageal sphincter activity may be detected in EAdi signals, and position of LAE in PRA determined in response to the detected lower esophageal sphincter. End-expiratory occlusion of PRA may be performed to verify that the electrical activity of the diaphragm coincides with a negative deflection of PRA pressure again in view of determining adequate positioning of LAE.