REFERENCE ELECTRODE USING LOCAL ENVIRONMENT pH CONTROL