Hi @Chandan -
It sounds like your Bar30 may be faulty - please report the issue to further diagnose and potentially obtain a replacement. Was the unit exposed to water for more than 24 hours?
The “Depth sensor error” is often connected to an error in I2C communications. Have you modified any of the wiring, such as extending it, or routed it near particularly electrically noisy systems?
Checking the quality of the signals with an oscilloscope is generally a good idea, and adding a ferrite core to the cable can help - as the Outland Technologies Topside power system manual recommends this part.
If you analyse an autopilot DataFlash (.bin) log and find the temperature and pressure of BARO1 are completely stable for periods of 2 or more seconds, then this bug is likely your problem, and us increasing the timeout should resolve it.
That said, if your sensor values are noisy then there’s likely some electrical noise on either the power or communication lines that’s causing the readings to fluctuate more than expected, in which case you should refer to @tony-white’s suggestions to diagnose and mitigate the issue