make min/max values compatible with i2c sensors and handle raw data signed/unsigned issues