Cotton Contamination Detection using Linear Array Sensor