As today's agriculture industry is facing numerous challenges, including climate changes, encroachment of the urban environment and lack of qualified farmers, there is a need for new practices to ensure sustainable agriculture and food supply. Consequently, there is an emphasis on upgrading the farming practices by shifting towards Smart Farming (SF) -utilizing advanced information and communication technologies to improve the quantity and quality of the crop with minimal labor interference. SF has gained lots of interest in recent years utilizing a variety of technological innovations in the field, which imposes a challenge on farmers and technology integrators to identify the suitable technologies and best practices for a particular application. This paper provides a survey of the most recent SF scientific literature to identify common practices toward technology integration, challenges, and solutions. The survey was conducted on 588 papers published on the IEEE database following Cochrane methods to ensure appropriate analysis and interpretation of results. The papers' contributions were analyzed to identify necessary technologies that constitute SF, and consequently, research themes were identified. The identified themes are sensors, communication, big data, actuators and machines, and data analysis. Besides presenting an in-depth analysis of each identified theme, the paper discusses integrating more than one technology in systems to achieve independency. The most common SF systems are remote monitoring, autonomous, and intelligent decision-making systems.