Use sensor responde time effectively

Hi everyone,

I was wandering if there is a way to execute commands while waiting for a sensor to respond.

Specifically, it is about temperature sensors MAX31856 which I am using with Adafruit_MAX31856.h library and XXX.readThermocoupleTemperature(); command. I takes 250ms for each sensor to respond (I assume because of the in-sensor temperature compensation or fault detection) which means that (with 4 sensors) for one second I can do nothing else. I am Serial.print ing the Temperature values to a processing GUI and would like to read & print some analog channels while waiting for the answers from the temperature sensors.
I tried to google the answer myself but didn't make progress neither with time interrupts nor with multitasking like FreeRTOS

The library defaults to one-shot mode in which case it initiates and waits for the conversion when you call readThermocoupleTemperature(). You can do a one-shot manually and monitor for completion yourself.

The example below shows how to use manual mode.

MAX31856 Manual Example

Many thanks for the link. I could solve the problem

konstantin78:
Many thanks for the link. I could solve the problem

No problem. Let me know if that works.