Internet of underground things (IoUTs) and wireless underground sensor networks (WUSNs) are new technologies particularly relevant in agriculture to measure and transmit environmental data, enabling us to optimize both crop growth and water resource management. The sensor nodes can be buried anywhere, including in the passage of vehicles, without interfering with aboveground farming activities. However, to obtain fully operational systems, several scientific and technological challenges remain to be addressed. The objective of this paper is to identify these challenges and provide an overview of the latest advances in IoUTs and WUSNs. The challenges related to the development of buried sensor nodes are first presented. The recent approaches proposed in the literature to autonomously and optimally collect the data of several buried sensor nodes, ranging from the use of ground relays, mobile robots and unmanned aerial vehicles, are next described. Finally, potential agricultural applications and future research directions are identified and discussed.