The invention provides a steam generator. The steam generator comprises a boiler body, a water tank and a water pump, wherein the water tank is connected with the water pump through a first pipeline, the water pump is connected with the boiler body through a second pipeline, an electric heating device is arranged in the boiler body, the upper part of the boiler body is provided with a steam outlet pipeline, and the water tank is provided with an inlet pipeline. The steam generator is characterized in that a water level sensor is arranged in the boiler body, the water level sensor, the electric heater and the water pump are in data connection with a controller, the controller is connected with a cloud server, and the cloud server is connected with a client side; and measured water level data is transmitted to the cloud server by the controller and then transmitted to the client side through the cloud server, the client side is a mobile phone, an APP program is installed on the mobile phone, and the controller controls the power of the water pump according to users. According to the steam generator, the running of the steam generator is monitored through the APP of the mobile phone, water level detection is realized through remote monitoring, and intelligent control is realized on water level in the steam generator.