Program the pitch to change based on the distance detected by the sensor.