# getting analog input back from arduino into Python

arduino = Runtime.createAndStart("arduino","Arduino")
arduino.connect("COM12")

readAnalogPin = 1
arduino.analogReadPollingStart(readAnalogPin)
arduino.addListener("publishPin", "python", "publishPin")


def publishPin():
  pin = msg_arduino_publishPin.data[0]
  print pin.pin, pin.value, pin.type, pin.source
  
# arduino.analogReadPollingStop(readAnalogPin)  
# getting analog input back from arduino into Python

arduino = Runtime.createAndStart("arduino","Arduino")
arduino.connect("COM12")

readAnalogPin = 1
arduino.analogReadPollingStart(readAnalogPin)
arduino.addListener("publishPin", "python", "publishPin")

def publishPin(pin):
  print pin.pin, pin.value, pin.type, pin.source
  
# arduino.analogReadPollingStop(readAnalogPin)  

Update Arduino.analog.input.py