An example program that uses the M! SDI-12 command to measure the incoming short-wave (SW) radiation, outgoing SW radiation, incoming long-wave (LW) radiation, and outgoing LW radiation of the SN500SS. The example program supports the CR6 and CR1000X data loggers.