8 double V_NTC = analogRead(
pin) /
static_cast<double>(analogRead(
ref_pin));
const double r_inf
Thermistor's value of R_inf in the thermistor equation (Ohm)
double getThermistorResistance() const
Calculate the resistance of the thermistor in the voltage divider.
const double B
Thermistor's value of B in the thermistor equation (K)
double readTemp() const
Get the temperature of the thermistor.
const uint8_t pin
NTC pin number.
const double R_series
Resistance of R2 in voltage divider (Ohm)
const uint8_t ref_pin
Reference (high) voltage pin number.
ThermistorReader(uint8_t pin)
Constructor.