The main purpose of the ride height sensors for the air suspension system is to provide the electronic control unit (ECU) with information on the heig [See the full post at: Everything you neeed to know about ride height sensors]
The Ride Height Sensor is also a critical component on Advanced Driver Assistance systems, if this has to be replaced then all ADAS systems on the vehicle must be calibrated.