This is the problem I recieve when it is run:
AttributeError: module 'serial' has no attribute 'Serial'
The code is:
import serial
connection = serial.Serial('COM3', 115200)
while True:
data = connection.readline()
print(data)
I was expecting it to run.