thermistor: Add configurable polarity