def read():
size = 10
data = [0] * size
for i in range(size):
spi.xfer2([i])
val = spi.xfer2([0])
data[i] = val
print(str(i), str(val))
values = bytearray(data[0:3])
[x] = struct.unpack('<f', values)
print(str(x))