Level measurement of aggressive chemicals in the semiconductor and solar industries