Method of identifying burning material from its smoke using attenuation of light