The invention discloses a self-cleaning surveillance camera based on internet of things, include a first fixing plate, a second fixing plate is fixedly connected to the top of the right side of the first fixing plate, The right side of the second fixing plate is fixedly connected with the first movable plate, the right side of the front side of the first movable plate is fixedly connected with themovable shaft, the rear side of the movable shaft penetrates through the first movable plate and extends to the back side of the first movable plate and is movably connected with the second movable plate, and the top of the second movable plate is fixedly connected with the image pickup body. In accordance with that present invention, rotating shaft, rotary table, The connecting rod, the second rotating shaft, the connecting block, the mounting plate, the telescopic rod, the stretching plate, the mounting sleeve, the connecting plate, the brush, the water tank, the water pump, the water inletpipe, the water outlet pipe, the sprinkler and the PLC controller cooperate with each other to realize the effect of self-cleaning function, solve the problem that the surveillance camera does not have the self-cleaning function, greatly improve the use efficiency and bring great convenience to the use.