Software and sketches for the riffle water quality sensor platform