tldr wrote:shiftin is a serial digital read. it shifts eight bits in to a byte.
your code is shifting in 128 bits, 8 bits * 16 bytes. each bit of each byte in your 16 byte array represents one position in the ccd array, either on or off. apparently the sensor is configured for digital output. it is possible that it can output raw analog values, but that is not what your code is having it do.
i use TSL1401CL ....... if u have code for these line scan sensors, plz help us