add embedded code for the sensor and matlab function to read image data