This paper presents the design and development of an IoT device, called MEIoT weather station, which combines the Educational Mechatronics and IoT to develop the required knowledge and skills for Industry 4.0. MEIoT weather station connects to the internet, measures eight weather variables, and upload the sensed data to the cloud. The MEIoT weather station is the first device working with the IoT architecture of the National Digital Observatory of Intelligent Environments. In addition, an IoT open platform, GUI-MEIoT, serves as a graphic user interface. GUI-MEIoT is used to visualize the real-time data of the weather variables, it also shows the historical data collected, and allows to export them to a csv file. Finally, an OBNiSE architecture application to Engineering Education is presented with a dynamic system case of study that includes the instructional design carried out within the Educational Mechatronics Conceptual Framework (EMCF) to show the relevance of this proposal. This work main contribution to the state of art is the design and integration of the OBNiSE architecture within the EMCF offering the possibility to add more IoT devices for several smart domains such as smart campus, smart cities, smart people and smart industries.