Vaisala WXT520 weather sensor

  1. I need to send "0XR" command every time when I want new data from Vaisala. So, whenever I read one set of data, I need to send new request (pool the data) in order to receive new set of data. My idea is to set the delay at the end of loop().

My idea is that you look at, understand, and embrace the idea of the blink without delay example.

Echo each character read from the device to the Serial Monitor, as both a character and as a HEX value. I think pretty quickly, you'll get a handle on the output.

And forget about any use of delay(). Use millis() and a stored time (last time you sent data) to determine if it is time to send again.