Vaisala WXT520 weather sensor

This only works if length of data is smaller than 63 bytes, if length is larger (in my case, each received message is between 150 and 170 bytes long, depending on measured values), everything falls apart

You can read serial data orders of magnitude faster than it can be received. If you are having troubles storing the data as fast as it can be read, you are storing it wrong.