Population growth and climate change pose a real threat to food security. In addition, current food production practices have created a huge ecological footprint. In spite of this, food production has to increase globally. There is a need for smallholder farmers to adopt technology to facilitate efficient food production. The recent advancement of sensor technology, computational power, and the emergence of low power wide area networks (LPWAN) for the Internet of Things(IoT) connectivity enables the collection, transmission, processing, and analysis of data. These technologies in combination with low-cost devices and the availability of open-source software enable the development of smart solutions that can make sectors like farming efficient. In this thesis, we propose a LoRaWAN based smart farming for emerging economies.