An apparatus for controlled delivery of nitric oxide uses a processor receiving inputs from a detector to control upstream introduction of the nitric oxide into breathing air. Improved accuracy and response speed are achieved by automatic control over a needle valve metering nitric oxide into breathing air. Also, a diverter vectoring a sample of the mixed air and nitric oxide toward a face of the detector reduces the diffusion boundary layer resulting in greater precision and speed of response.