Start by reading about millis: https://docs.arduino.cc/built-in-examples/digital/BlinkWithoutDelay/
Using millis is just one option. If you choose to use millis, then there are again a number of good options.
I would create a timer of 1 minute, and then count the minutes and act if something needs to be done.
If you are new to programming and Arduino, then I suggest to start reading about digitalRead() and digitalWrite().