Wrote the C code to check for moisture level, and alert appropriately. Compiles and works as expected.