require "i2c" ADRS = 0x5c # LPS25H NODE = "/dev/i2c-1" # I2C device node i2c = I2C.create(NODE) res = i2c.read(ADRS, 1, 0x0f) printf "RESULT: 0x%02x\n", res.getbyte(0)