Never mind I found the problem. It was actually in the line above paramVal = self._device.readfrom_mem(self._address, SI1145_REG_PARAMRD, 1)