Water TDS Measurement

I'm going to work on changing the code to use the port registers directly. from what i've read it makes the code a good deal faster and changes all the pins at once. i'm afraid the charge in the cap is draining before it can be test.
red