Calculate Resistance Using Audrino

Reading the code I see comments referring to measuring the resistance of water (i.e. an ionic solution). You can't measure this using a DC current, you'll get electrolysis and the measured resistance will change with time.