Smart window construction

I don't think it's enough to control it, so I'm going to try an external power source

I see. You have major problems with the most basic aspect of the project.

Who can provide me with a code to help me?

The "servo sweep" Arduino example will get you started with the servo. Be sure to use an external servo power supply, and don't forget to connect the grounds.

If the servo is not powerful enough to open the window, you need a different window opening mechanism.

Now the window control has been turned on normally, but I need to implement the required code for further debugging

Very good. Post your updated sketch/code here when you have the servo working.

Can you help me rewrite a code, I'm driving me crazy

To re-write, we need to see what you have. Yes, you will be helped. Be sure to supply the information asked of you.

I used the uno r3 board, MQ-5 smoke sensor, infrared tracking sensor, ultrasonic sensor, HC-06 Bluetooth module, steering gear, buzzer

But, you have no code to post.

Have you been able to run Blink Without Delay? You will need this to add device/event timing to your sketch.

Have you tried the other built-in example sketches?

I don't have much time to write code, so I'm asking if you can help

"Do" and "help" have separate meanings.
You will "do" the work and others will "help."

If you do not have the time for your project, who does?

If you want to say that, then I have nothing to say, my ability does not support me to write this code in a short time, so I seek to have the ability to help me write this code, as for the difference between "doing" and "helping" you say I have nothing to say, I think it will be of great help to me to provide ideas or help me complete this code, I am very grateful, if you don't have time, I won't bother you

You have two intricate projects on this forum right now. I can help you, but you must learn as you proceed. You must do the work.

Begin with writing, compiling and uploading this sketch:

void setup() {
  Serial.begin(9600);
  Serial.println("Hello, World!");
}
void loop() {}

Show your results here.

Then ask a moderator to move your post to the "Jobs and Paid Collaborations" forum section (click on the "flag" button, lower right on your original post). Be prepared to pay for the service.

I know you guys are in a hurry but wait, I'm done with the project, so you don't have to feel like I don't respect your hard work, man. Thank you for your company. Don't reply again. Thank you

You are welcome. Hurry back the next time you have a question about Arduino!

: (