In some embodiments, sensor 63 may include an electrode pair, including one electrode integrated with the housing of stimulator 14 and one of the electrodes of leads 16, that generates a signal as a function of the thoracic impedance of a patient 12, which varies as a function of respiration by the patient 12.