Make my DRO/dendrometer do more things

There are programming-tecniques that you do not yet know and understanding them requires to learn something new.

This programming-technique is not a variation of basic commands. It is something new. And this new needs some time to learn.

The code that you posted uses an interrupt that is caused by the signal-change of the clock-signal.

This single line of code is executed each time the clocksignal gos from LOW to HIGH = RISING

User @sherzaad posted a code-version that does not only set a flat but does reading in the bits of the dataline.

Did you at least test sherzaads code?
You should really test it and report what results you get.

There are 10 ways how some kind of "alter timing" can be coded.
It is crucial that you post your attempts what you have really coded.

You want to have this functionality

and you are asking for inserting a delay

it is not done this way
take a reading
make the microcontroller freeze for 1000 milliseconds
take a reading
make the microcontroller freeze for 1000 milliseconds
take a reading
make the microcontroller freeze for 1000 milliseconds
..
it is done this way:
take a reading as fast as you can (with the exact timing as in your code
check if more than 1000 milliseconds of time have passed by
when REALLY 1000 milliseconds have passed by store value on SD-card
if not just drop the reading

This means you take a lot of readings but you just drop all readings
that are "too early"
Only if 1000 milliseconds of time have really passed by you do something with the reading.

In this way the timing for reading stays the same as it already works
but you don't freeze the microcontroller with a dleay(1000)
you check very fast and very very often
have 1000 milliseconds passed by.

You can read the details how this is coded in this tutorial linked below
.You will still have some questions just ask them.

best regards Stefan