2 relays with Arduino IoT cloud - Help

Hey Guys,

As mentioned above I am using two relays with a nano 33 IoT in the Arduino IoT cloud with one which can be turned on/off using the switch in the dashboard while the other works on a timer (10mins ON/ 50mins OFF). I seem to have an issue with my code and since it is only a small project and I'm a beginner, I don't think I'll need to post my code. Please let me know if you have done something similar or have seen something.

Please let me know if I need to post my code as I feel it will be of no help due to the number of mistakes present in it.

P.S. For the timer, I am using the delay() function after digitalWrite(ing) the relay pin as high and low in the following method:

delay(3000000) //waits for 50 mins
delay(600000) //waits for 10 mins

Thank you

I seem to have an issue with my code and since it is only a small project and I'm a beginner, I don't think I'll need to post my code.

Without a description of the problems you have and complete code we're not able to help you.

Please let me know if I need to post my code as I feel it will be of no help due to the number of mistakes present in it.

Don't you think these mistakes may be the source of your problems?

P.S. For the timer, I am using the delay() function after digitalWrite(ing) the relay pin as high and low in the following method:

Depending on the rest of the code I would suggest to start searching here for the "mistakes".

Take a look at the example code "BlinkWithoutDelay" to replace the delay calls by millis().