Added offset to sensor mapping function.