Soil moisture monitoring in smart farms