by measuring the voltage