modification of decode_data_byte in sensors.js