Electrolysis of sodium hydroxide solution with indicator