changed dataArray from 9 to 10 because IR was added to measurements.