Code to read the encoder on the air bearing