Tempreture sensor lm35 with fan and smoke sensor mq2 with water pumping with ar

hey, iam new at coding and i must to make a project to my school.
the project is
fire occurs
when the tempreture sensor feels the rise in tempreture opeans the fan
when the smoke senor indicate the smoke pump the water
i use these two videos
1-Temperature Based Fan Speed Controller using Arduino
2-https://youtu.be/yYMQPZXn4Ic?si=6bVnfE3SmwGUZQ3N

what is the code that i will use how can i connect the two codes?

Please read and use the advice given in a topic named "How to get the best out of this forum." It tells how to post code.
Search for "Merging codes". It's a common question handled many times before.

1 Like

i searched before but no project is exactly the project i worked on

No, that's normal. Exactly the same never exist. Get to understand the principle of merging codes.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.