Hello I am trying to make an alarm that when it has power it will have a delay of 10 seconds(for testing) then turn pin 10 on the arduino uno i have to a output turning on the buzzer/alarm

Full Code

void setup() {
  // put your setup code here, to run once:
pinMode(10, OUTPUT);

void loop() {
 // put your main code here, to run repeatedly:


and im not to good at programming so if my code is bad dont judge

Could you at least go edit that first post so the code isn’t bold underlined which is going to fry everyone’s eyeballs, and rather put it in code tags. Use the </> icon or manually edit [code] sketch goes here [/code] .

When your Arduino is powered up, you wait 10 seconds, and then you set the mode of pin 10. You never actually turn the pin on.

Using the Arduino for such a trivial task is like using a steam roller to squash mosquitoes.

Could you at least go edit that first post