Pitch control using VL6180X proximity sensor