arduino using buttons question

I read the information from nodemcu,data is always receiving
I have used a button
Is there a way for arduino to design a button to press the moment and record one minute of data?
Is there a similar tutorial for reference?

Check out the Blink Without Delay example in the IDE (File->Examples-02.Digital->BlinkWithoutDelay). It will show you how to track elapsed time. You wait for your button to be pressed. When that happens, you record the start time. You also set a variable to indicate you are recording.

Then, check that variable and if it is set, record your infomration.

Check the current time - start time and if it has been 1 minute, reset the variable to indicate you are NOT recording.