update sensor distance