Python py pyfirmata code is showing the incorrect value
Question: I write the following code to check the value of input pin but it never shows
the digital value as input. I don't know what is wrong. Can any one explain it
?

    
    
    from pyfirmata import ArduinoMega, util
    board = ArduinoMega('COM3')
    
    digital_0 = board.get_pin('d:30:i')
    board.digital[9].write(1)
    value= digital_0.read()
    print value
    

The result is always :

    
    
    >>> 
    None
    >>> 
    


Answer: Actually I wan not using pull-down resistor that is why it was giving the
wrong value. This problem is solved long ago :)

