The aim of this paper is to solve the problem of a large amount of redundant data in the process of large-scale acquisition of Internet of Things sensors. This paper proposes a frequency adaptive data sensing method based on revolving gate algorithm for STM32 power safety data acquisition system. The method realizes the intelligent control of current protection terminal through three-stage current protection algorithm and frequency adaptive data acquisition algorithm. First, the three-stage current protection algorithm is used to protect the circuit, which can trip quickly in case of overload, and reduce the peak current caused by some equipment when starting up, so as to avoid damage to the equipment. Second, the arithmetic mean of each statistic is compared with the last value reported to the server. If the absolute value of the difference between the two exceeds the specified threshold range, the reported value is updated. Otherwise, it is filtered out, and the data smoothness is calculated according to the rules. The data collection interval is dynamically adjusted according to the data smoothness, which can greatly reduce the collection of redundant data and the traffic consumption of Internet of Things devices. On the server side, the inverse algorithm is used for interpolation and reconstruction to recover the collected data. This method is applied to the developed electricity safety equipment, and the electricity consumption is monitored and collected continuously for 24 h. After filtering by the frequency adaptive algorithm, only 108 pieces of data records are reported for 28,713 pieces of original data, and the compression ratio reaches 99.49[Formula: see text]. Compared with other data collection strategies, this method significantly reduces the amount of redundant data collection and the energy consumption of terminal nodes. Furthermore, this method realizes the real-time perception of line data and environmental data through current, residual current, temperature sensor and electric energy metering chip, and controls the opening and closing of wire controlled micro circuit breaker through PC817 optocoupler to protect the safety of the circuit.