import serial

port = "COM1"
baud = 115200

def parse_pressure(msg:bytes) -> float:
    try:
        toks = msg.decode().split('_')
        return float(toks[1])
    except:
        print("[ERROR] read failed.")

with serial.Serial(port, baud) as ser:
    for i in range(10):
        msg = ser.read_until()
        pressure = parse_pressure(msg)
        print(f"{msg.decode().rstrip()}\t{pressure}")

