Abstract:Underpass tunnels are an important form of fast lanes in urban traffic, but they are prone to water accumulation during rainy seasons and flood periods, affecting traffic safety and efficiency. The current tunnel water detection methods have many shortcomings, such as inaccurate measurement, slow response, high maintenance cost, etc. To achieve real-time monitoring and early warning of water level in underpass tunnels, this study designed a water level detection system based on STM32F103C8T6 main control chip, HC-SR04 ultrasonic sensor and nRF24L01 communication module. The system consists of two stations: the slave station is responsible for collecting the water level height of the easy-to-flood area at the tunnel entrance and sending it wirelessly to the master station; the master station is responsible for receiving and processing the water level information and displaying the real-time water level and corresponding warning on OLED12864 screen. The system has the characteristics of high measurement accuracy, fast response speed, low power consumption, easy installation, etc. Experimental results show that the system can accurately measure the water level height of easy-to-flood area at tunnel entrance and display corresponding warning information on OLED12864 screen, achieving expected effect. Provide a novel and effective solution for underpass tunnel water detection and provides reference for water level monitoring in other similar scenarios.