To test the acidity [acid (H+)] or alkanity [base (OH-)] of a substance, a paper with pH indicator dye or electronic tester is used. The pH papers use a chemical that changes colors with a change of pH. These come in a wide variety of pH ranges. Electronic testers use the electrical potential created by the excess of H+ or OH- ions.
Update: June 2012