Abstracted the solution to have the thermistor as its own library.