Modified for use with different I2C library, employed in wlan slovenija sensor gateway.