MSP430 code for our smart sprinkler capstone project