An external electronic stimulator is attached via wires through the skin to four electrodes implanted in the diaphragm near the phrenic nerves. The device generates an electric impulse that triggers the diaphragm to contract and allows air to fill the upper and lower parts of the lungs.