ISO 14001 is a set of standards to help organizations for constructing an environmentally building or rooms. In the campus environment, the ISO 14001 is used as the guide for creating an environmentally laboratory. Based on this ISO, the environmental condition of the laboratory need to be checked periodically. Recently, IoT devices were developed as the tools to monitor the ecological status of the laboratory. However, the recent study of IoT-based monitoring is used only for collecting the data. The data is being processed manually on the server. In our research, we try to implement machine learning for the IoT-based monitoring tools to improve the performance and gives the capability to respond to any condition of the laboratory. In this paper, we discussed our proposed design of IoT-based monitoring devices. We used a microcontroller module called NodeMCU ESP8266 to build an efficient monitoring system. ESP8266 is a type of microcontroller board equipped with a WiFi module to make it possible to design a system that can send data from multiple sensors (temperature, humidity, light intensity, CO2 concentration) to be displayed and sent to the database server using the WiFi module. The data collected in the database will be processed using machine learning by the Classification and Regression Tree (CART) algorithm and then implemented to the microcontroller as embedded machine learning to detect impending early threats and provide early warnings. With this method, it has been found that the CART algorithm provides a speedy processing time with training and testing time of 0.5 seconds and 0.06 seconds, the precision of 0.999154, recall of 0.999946, and f1-score of 1.0. We also design our device to be compact to be placed anywhere inside the laboratory and consume low-power.