Implements sensor offset and fixes factor scaling.