ZIGBEE technology is based on mature communication standards, and its technology application field is more and more extensive, such as intelligent home appliances, medical health, military reconnaissance, environmental monitoring and other aspects have great development space. With the development of science and technology, information technology, represented by multimedia and network technology, has been widely used in education field. The use of information technology has attracted more and more attention of teachers and students. But the current situation is not ideal for the deep integration of information technology and political teaching. The purpose of this paper is to study the application of wireless sensor network in the political online classroom, to increase the integration of information technology and political education, and to improve the interest of students in political learning. This paper, through the relevant theoretical research, considers the application of WLAN in political classroom, analyzes its advantages and makes teaching process. The shortcomings of traditional wireless sensor network are analyzed and the optimization algorithm is proposed to save energy. In the environment of wireless sensor network deployment, an online teaching platform is built. This paper uses SSH framework technology to realize the functions of the system, and gives the specific introduction of the realization of each function module in the system. Through the system debugging, deployment and implementation, the system successfully completed the course deployment and implementation, which strongly supports the smooth progress of the flipped classroom teaching reform. Finally, through questionnaire and interview, teachers and students have a good attitude towards online teaching platform, the highest satisfaction of the system stability is 100%, 86.67% of the teachers are satisfied with the ease of use of the system operation.