func (ino *Goduino) AnalogRead(pin int) (value int, err error) {
	p := ino.digitalPin(pin)
	if ino.board.Pins()[p].Mode != Analog {
		if err = ino.PinMode(pin, Analog); err != nil {
			return
		}
	}
	value = ino.board.Pins()[p].Value
	ino.logger.Printf("analogRead(%d) -> %d\r\n", pin, value)
	return
}
AnalogRead retrieves value from analog pin.
Returns -1 if the response from the board has timed out
package goduino