Currently, pollution and global warming is a very controversial problem, due to the various consequences and effects it generates on health and the environment. There are studies that highlight that the main pollutants are due to human action that generates the extermination of certain ecosystems, as well as the increase in various acute and chronic diseases. The ecosystems most neglected by the authorities and the citizens are the wetlands, which can be seen reflected in the wetlands of Ventanilla, whose surface has been reduced from 1,500 to 275.45 hectares due to overpopulation and contamination by the citizens themselves in recent years. These accessions endanger the extermination of the habitat of 126 birds and 27 species of native plants that inhabit a certain place, which is of great concern because these ecosystems are rapidly degrading. That is why, in the face of this problem, the design of a weather station applying the internet of things is proposed, which aims to inform the caretakers of the current state of the wetlands through a web server, where it will serve to carry out preventive actions. regarding the care of a certain ecosystem that are essential for the stabilization of CO2 emissions. This system is made up of the ESP32 platform, which will activate the emergency lights and a siren when the DHT 22, BMP180, ML8511 and MQ135 sensors detect abnormal values in temperature, humidity, atmospheric pressure, altitude, UV radiation and toxic gases.