The invention is a method to improve the prediction of the corrosivity of organic acids in petroleum crudes, feedstocks and distillation fractions by providing a more accurate, repeatable, and rapid means of determining the TAN from the IR spectrum of the material. A receiver is incorporated with the housing which performs in conjunction with strategically positioned emergency transmitters which are actuated by personnel in the event of a perceived emergency condition. The manufacturing method features in that the hole carrier concentration of the p-type nitride semiconductor layer decreases during the cooling process.