upg: fix i2c read error

decode read date as float instead of int
Merge pull request #13 from andrea-83/linino-io

fix: i2c read error