A system and method of controlling the application of energy to tissue using measurements of impedance are described. The impedance, correlated to the temperature, may be set at a desired level, such as a percentage of initial impedance. The set impedance may be a function of the initial impedance, the size and spacing of the electrodes, the size of a targeted passageway, and so on. The set impedance may then be entered into a PID algorithm or other control loop algorithm in order to extract a power to be applied to a treatment device.