check_intensity_code function

Check the intensity code.