“The software is defective if it cannot handle a faulty sensor.”
How does a computer or a human know when a sensor is giving a wrong measurement? The plane needs at least two of those sensors, maybe three for redundancy.
You seemed to have missed the article where Boeing says the are going to rewrite their software so that it uses inputs from other available sensors and not just one sensor. I am not even an engineer and I Thought about that before they did. There are plenty of other sensors that provide information. How about Altitude for instance. Does a stalling plane gain altitude? Start thinking for yourself.