An example CR1000X program that uses the R7! SDI-12 command to retrieve data. The program adjusts the barometric pressure measurement to sea level. The adjustment is entered as a constant in the beginning of the program. It assumes the site elevation is 1382 m, and a different value is required for different site elevations.
This program also includes instructions that set wind measurements that are less than 0 to the last valid measurement. These instructions are needed because high winds with rain can temporarily interfere with sonic wind measurements.