Looping Back to setup after void loop() has run a random number of times

You are all good, In this Section of code I am attempting to read values of data from each sensor, sensors_event_t (Temp, pressure etc:) is triggering the event to begin reading from those sensors, apologies because while I was troubleshooting I forgot to uncomment the section bmp_temperature->getEvent(&temperature);and //mpu_accel->getEvent(&accel);. the check for groundLevelPressure is to set the value of the pressure at the launchpad as our "Sea Level" Reference point instead of 1013.25 hPa, and the calculations for seaAlt 1 and 2 is just the equation for calculating altitude split into 2 segments because I couldn't figure out how to do it on one giant string, which, would be more memory efficient, and the same thing is happening for the Alt1 and Alt2 but instead of sea level pressure we are plugging in the pressure at ground level so we can get exact altitude measurements. The piece of code cut off at the very end is the beginning of the readouts from the flight computer with the telemetry, used for the serial plotter, and the ///* is there so I can uncomment the multi line comment faster. and temperature.temperature is just asking for the temperature readings, from the temperature sensor, same thing with pressure.pressure asking for the pressure values, from the pressure sensor.