changes to arduino code for voltage read