I want to program my ardiuno for my water sensor project but there is an issue with the delay timer
The conditions are
- First a sensor has to detect the water.
- After sensing the water I need a buzzer for 5 minutes till that I don't want to turn on my motor.
- After 5 minutes I want to switch on the motor and turn off the buzzer.
- If the water stops I want to stop everything.
I tried using delay and millis functions but I couldn't get the desired output please help me out guys