I am trapped in a Arduino project, plz help me out.
I have a carbon monoxide sensor with Aruidno. Basically, I want to shutdown my generator when CO reaches a certain level plus continue for certain minutes. For example, the CO reaches xxx ppm and the generator waits for 5 mins to shut down.
I couldn't find a function in which Arduino can record time. In other words, I don't know how to write this 5 mins.