This research presents the design and implementation of a precision agriculture system using sensor networks as the basis in precision agriculture for farmers tomatoes (Solanum lycopersicum) in Colombia with the aim of transferring knowledge and mitigating the effects of the soil and climate change on of tomato crops. Finally we found the optimal ranges to improve productivity and avoid losses due to uncontrolled agroclimatic variables such as relative temperature, soil temperature, relative humidity, soil moisture and luminosity. Also, this paper aim a IoT architecture for the respective storage and traceability of tomato crops in the cloud.