sensor sampling frequency
You have discovered delay() does not guarantee the period of your code.  This is because the period of your code is the delay() plus the time for your code to execute.

What you need is a hardware clock to give your code an indication that a fixed period has expired.  This is one of several Arduino timer libraries. The timer library web page describes your problem in more detail with example code using delays and using the timer library features.