Voltage sensors are used to measure the electrical potential difference between two points in a circuit. It works by converting the voltage into a proportional signal that can be measured by an instrument or control system. Voltage sensors can be either analog or digital and can be used in a variety of applications, such as power supplies, battery management systems, and automotive electronics.