added analog reference pin
changes for voltage curve