I am trying to run this python code. Can anyone tell me how ho solve this issue?
from pyfirmata import Arduino
from time import sleep
port = 'COM9'
board=Arduino(port)
pin = board.get_pin('a:0:i')
it = pyfirmata.util.iterator(board)
it.start()
while True():
analog_value = pin.read()
# voltage = float(analog_value*(5.0/1023.0))
print(analog_value )
# print(voltage)
sleep(0.1)
Is not needed when writing a
while True
statement.