Fix incorrect pins array reference, add analogRead command, remove repeated connect function in analog-pin.