Updated logic to fix bug where the system recovers from a trigger due to recalibration and also ensures the noise level is not zero.