add parameter for depth sensor to differ between sensor types. Read function of sensor is now sensor dependent.