I’m looking for practice when the sensor fails. Not at reading one or two times… but at working entirely.
Let’s look at the most extreme example… the sensor exploded, and took out the pull down.
Now you’ve got a floating pin. And the sensor is on the moon.
What would be best practice for having the sensor report invalid, rather than the voltage read?