Automatic water sampler for a drone

Hi Tom,
Here is the circuit diagram. I am using 9v battery to supply power.

After the first loop, the tx light on the arduino board is on and the next loop is not being executed.