The time-domain reflectometry method for measuring soil water content and salinity