This small module helps you measure moisture of soil. It is a low cost sensor that you can purchase from Ebay.

To modify the sensitivity of the soil moisture sensor, just rotate the potentiometer on the module.