got a little project here, here have very little experience on arduino, only school projects I had to do back.
in short, it's gotta have a temperature sensor, that shows the temperature on a LCD screen. a button that moves a servo motor to open a small door. lastly a movement and smoke sensor that triggers a beeping sound and led for an alarm, and the movement one won't trigger if the door is open.
the idea is a model safe to gift my little sister who got an interest in electronics now and I kinda wanted to give her the nudge, even if it ends up broken and forgotten.
some of the technicals are the fact I'm gonna be using an UNO R3, as I have an spare with me.
wanted some help and advice for the scheming, and coding, as I haven't touched arduino in roughly 4 years, and have no idea where to start, all I have with me is the spare, and tinkercad.
There are plenty of tutorials on line for each aspect of the project: read a temperature, connect an LCD and display values, command a servo, etc. Some come with the Arduino IDE, too.
The most straightforward approach is to take one step at a time. Get each bit working independently before starting to add the parts together.
I think they mean a block diagram showing your PHYSICAL boards, power, etc. and how you envision them all being connected with wires. Lines represent the actual wires.
As with most projects break it down .
Write a sketch to
Control the servo. Write one to read temperature and so on. You will find examples everywhere that you can base your sketch parts on .
When you know how to do all the elements of your plan , write a sketch combining them all.
Have a go and report back
You have a good start with the sketch you provided.
I would think your next step would be to determine what hardware components you will use. What temp sensor, smoke detector or type of display for example.
Once that is determined, assign each component its proper UNO pins. Locate example code for each and test it individually. Then properly combine the code segments.
As others have said, give it a go and let us know.