This paper presents a software architecture for microcontrollers running on data capture cards for the Internet of Things (IoT). The Software Architecture describes the structure, operation and interaction of the different components from a global perspective. This paper describes various components and subcomponents of the architecture and its communication. A case study is developed based on the proposed architecture for a cilantro crop in Colombia.