def read_byte(s):
    """
    Read in one byte from serial, and return it as an int.

    @param s: Serial object to be read.
    @returns: Byte received from serial.
    """
    b = s.read(1)
    return ord(b)