Fetch first, read second
The sensor fetch API obtains a sample and stores it in the driver. A channel-get call then reads a value from that stored sample. Fetching blocks the calling thread, so account for acquisition time when planning the rest of the application.
Read the Zephyr documentation ↗