A moisture sensor controller for the Arduino platform