// before
static void get_sensor_data(
    size_t iteration, const sensor_config_t* config,
    sensor_data_t* data, bool* need_output)
