This example program demonstrates how to use the CS211 with the SDI-12 R0!, R2!, and R3! commands. It was written for a CR1000X, but the programming for other data loggers will be similar.
The R0! command retrieves temperature, humidity, door state, and enclosure state.
The R2! command returns the count of single, double, and long button presses.
The R3! command reports the current door state and wetness ratio.