narrowed code down to only read the axis from each sensor that is required