Indicators are used to measure the density of electrolyte as an indicator of voltage in lead acid battery.
The basis of acid indicator work is that the different battery voltage causes the different electrolyte density, and different Archimedes force will be applied to the indicator ball by electrolyte, thus at different voltages, the indicator ball positions inside the chamber will be different and subsequently different colors can be seen.