Initial code for a water sensor device.