The present disclosure may include a system for delivering energy to an airway wall of a lung comprising an energy delivering apparatus and a PID controller having one or more variable gain factors. The energy delivering apparatus may include a flexible elongated member and a distal expandable basket having at least one electrode for transferring energy to the airway wall and at least one temperature sensor for measuring temperature.