database

OK, Tim. That helps a lot.

I don't think you need a database at all, as you say. Hold the items in arrays. Your code would do the data collection in each of the four cycles, putting the data into the arrays. You could put this loop in the "void setup()" part of your Arduino program, after doing all the initialisation that you need. That way, the loop of 4 cycles is done once.

Then, in the "void loop()" part of your program, you do what ever you want with the data. I'm assuming that you want to do something over and over again with the same data until reset. You've not gone into detail on that yet, which is fine, so can't say exactly what needs doing there.

About the arrays. Sounds like you have some integer data and some boolean data.

One way to do this would be to set up arrays like this - I'm inventing the names and data types just for example. There would be lots of other code in here, obviously, hence all the "...".

const byte numberOfCycles = 4;  // Makes it easier to change the number of cycles in future
int temperatureReading[numberOfCycles] = {0}; // Array of integers, one item for each cycle, initialised to 0
int pressureReading[numberOfCycles] = {0}; // Same again for the next data item
boolean isLightOn[numberOfCycles] = {false}; // Same again for a boolean data item
...

void setup()
{
   ...
    for (byte i = 0; i < numberOfCycles; i++)  // The 4 array elements are numbered 0 to 3
    {
        ...
        // example of how you might put the data in the arrays
        temperatureReading[i] = yourFunctionThatReadsTemperature();
        pressureReading[i] = yourFunctionThatReadsPressure();
        isLightOn[i] = yourFunctionToCheckTheLight();
        ...
    }
    ...
}

void loop()
{
...
// Do something with the data in the arrays
...
}

Hope this helps.

Ray