protected synchronized void setSensorData(int[] values) {
        if (values.length != sensorData.length) {
            return;
        }
        System.arraycopy(values, 0, sensorData, 0, values.length);
        sensorDataIsValid.set(true);
        if (sensorPacketListenerAdded) {
            sensorPacketListener.sensorPacketReceived();
        }
    }