from serial import Serial
import time
 
 #Open serial connection to the Arduino, restarting it.
 #Setup parameters baud rate, and timeouts
ser = Serial('/dev/ttyACM0', 
            115200, timeout = .5, 
             writeTimeout = .5)

#Need to sleep in order to give the Arduino time to boot up
time.sleep(3)

ser.write(bytes('1', 'ASCII'))
x = ser.readline()
print(str(x))

2981da008da1a3531b17c192c473d62e01c9649e
<mask token>

<mask token>
time.sleep(3)
ser.write(bytes('1', 'ASCII'))
<mask token>
print(str(x))

<mask token>
ser = Serial('/dev/ttyACM0', 115200, timeout=0.5, writeTimeout=0.5)
time.sleep(3)
ser.write(bytes('1', 'ASCII'))
x = ser.readline()
print(str(x))

from serial import Serial
import time
ser = Serial('/dev/ttyACM0', 115200, timeout=0.5, writeTimeout=0.5)
time.sleep(3)
ser.write(bytes('1', 'ASCII'))
x = ser.readline()
print(str(x))

from serial import Serial
import time
 
 #Open serial connection to the Arduino, restarting it.
 #Setup parameters baud rate, and timeouts
ser = Serial('/dev/ttyACM0', 
            115200, timeout = .5, 
             writeTimeout = .5)

#Need to sleep in order to give the Arduino time to boot up
time.sleep(3)

ser.write(bytes('1', 'ASCII'))
x = ser.readline()
print(str(x))
