Digital agriculture, with the incorporation of Internet-of-Things (IoT)-based technologies, presents the ability to observe and control a system at multiple levels (individual, local, regional, and global) and generate tools that allow for improved decision making and higher productivity. Recent advances in IoT hardware, e.g., networks of heterogeneous embedded devices, and software, e.g., lightweight computer vision algorithms and cloud optimization solutions, make it possible to collect data and efficiently process data from diverse sources in a connected (smart) farm. By interconnecting these IoT devices, often across large swaths of farmland, it is possible to collect data from multiple farming and food systems, and at different time scales, including in near real-time (i.e., with delays of only a few tens of seconds). This data can then be used for actionable insights, e.g., precise applications of soil supplements and reduced environmental footprint.Through LATTICE, we present an integrated vision for IoT solutions, data processing, and actionable analytics, with economics and policy considerations for digital agriculture. Our paper starts off with the types of datasets in typical field operations, followed by the lifecycle for the data and storage and fast information-retrieval solutions. It then goes on to describe the most prevalent and promising aspects of machine learning and cloud computing for digital agriculture. IoT devices that are capable of sensing different kinds of information connect with each other in a wireless sensor network setting. These form a rich source for optimizing IoT data collection and subsequent analysis. We discuss what algorithms are proving to be most impactful in this space, e.g., approximate data analytics and on-device/in-network processing. We conclude by discussing analytics for alternative agriculture for generation of biofuels and policy challenges in the implementation of digital agriculture in the wild.