2 Inputs (sensor1,sensor2)
1 Output( Output Relay )
The Code should be always in a sensing state to read sensor1
Relay only Gets ON for 3sec if Sensor1 is Triggered (5v)
Relay gets OFF after 3sec
During 3sec If Sensor2 gets Triggered (5v) Relay should get Off before 3sec
Question:
millis should be used or not ?
Or arduino has some Other Interrupts that can be used?
i need code regarding this ?