Reading water quality variables with a smartphone