Abstract: An improved on-stream analyzer for monitoring sulfur or nitrogen content of liquid petroleum or beverage products is described. It consists of the following main components: a sample injector for injecting predetermined fixed volumes of the liquid into a thermal oxidizer (pyrolyzer) at a preset, controlled rate, a thermal oxidizer in which an inert carrier gas and oxygen are introduced at measured and preset, controlled rates to thermally oxidize the sample at a temperature of about 1050° C., sample conditioner to control the relative humidity and temperature of the resulting gas mixture, an electrochemical cell sensitive to sulfur dioxide (SO2) or NO to measure the concentration of SO2 or NO in the gas mixture, and a programmable logic controller (PLC) to calculate the sulfur content of the original sample and manage the analyzer.