I know I need to do something like read(size=27), read(size=19) But I am unsure how to write the code. I can see that the serial data must be read, look for the first byte for 114, look for the second byte and see if it is ether 27 or 19 bytes long and then print the string in its correct length and ignore anything else that is not in this format.

My goal once this has been accomplished is to then assign each byte in the string a value so it can then be written to MySQL.