摘要
Abstract
Aiming at the problems of limited data acquisition,insufficient remote transmission capability,and complex deployment in small-scale environmental monitoring systems,a multi-sensor environmental data acquisition system based on ESP32 and Internet of Things technolo-gy is designed.The system takes the ESP32 microcontroller as the core and constructs a data acquisition platform integrating environmental sensing,data processing,wireless communication,and remote monitoring.The system adopts a DHT22 temperature and humidity sensor,PMS5003 particulate matter sensor,and MQ135 air quality sensor to collect environmental parameters.The ESP32 is used for sensor data pro-cessing,local OLED display control,and Wi-Fi communication,while the MQTT protocol is employed to achieve real-time transmission of en-vironmental data to the server.The system software adopts a modular design approach to realize functions including sensor data acquisition,da-ta encapsulation,network connection,remote uploading,and automatic reconnection under abnormal conditions.A test environment is estab-lished to evaluate the data acquisition accuracy,communication stability,and continuous operation capability of the system.The test results show that the temperature measurement error is controlled within 0.3℃,the humidity measurement error is within 2%(relative humidity),the relative error of PM2.5 measurement is less than 5%,the MQTT data transmission success rate remains above 98%,and the system operates continuously for 48 h without abnormal interruption.The results demonstrate that the proposed system can achieve real-time acquisition and re-mote transmission of multi-parameter environmental information,including temperature,humidity,particulate matter concentration,and air quality,and can meet the requirements of small-scale environmental monitoring applications for data acquisition accuracy and system operation stability.关键词
ESP32/物联网/多传感器/环境监测/MQTTKey words
ESP32/Internet of Things/multi-sensor/environmental monitoring/MQTT分类
信息技术与安全科学