import smbus import time bus = smbus.SMBus(0) address = 0x04 def readBlockData(numBytes): res3 = [] x = bus.read_i2c_block_data(address, 0, numBytes) res3.extend(x) return res3 def readBunchOfData(numBytes): myDataHere = readBlockData(numBytes) for i in range(0, numBytes): print (myDataHere[i]) while True: readBunchOfData(4) time.sleep(2) break