Converting voltage to analog value with resistor