serial read and return data passed