Make your system smarter, or brute force it.
What use is a sensor that's wrong?