The invention relates to the technical field of electric curtains. The invention discloses a curtain device with an automatic adjusting function and a warning function. The curtain device includes a wall and a supporting rod, a thick curtain is connected to the lower ends of hanging rings, the lower end of a second moving block is connected with a thin curtain, first fan blades are arranged at theright end of the second threaded lead screw, a photoresistor is connected to the upper end of the wall and the upper side of the supporting rod, second fan blades are arranged on the outer side of arotating shaft, a control device is arranged in the wall, an air bag is connected between fixing supports, and a variable resistor corresponding to metal balls is arranged on the upper side in the wall. The photoresistor is irradiated by sunlight, the control device controls a first driving device to drive a first threaded lead screw to rotate, wind power generated by rotation of the second fan blades pushes the first fan blades to rotate slowly, the first fan blades drive the second threaded lead screw to rotate, the second moving block drives the thin curtain to move leftwards, and the structure solves the problem that an existing electric curtain cannot be adjusted according to the illumination angle.