Can i continuously read device's sensor values?

Hi everybody!
I’ve read all the documentation regarding the features available for reading sensor’s values.
Is there a way to continuously read a sensor values in order to send them to an external database? In particular i’m wondering if it would be possible to do this when the app is closed!

Thank you all in advance for the help!

I´m 90% sure nothing can be read while the app is closed.

Thank you for the fast response Phil!