Thermistors are resistors that change their resistance value with the temperature. They are small, often the size of an ant, but they can also have wires that extend their range. Thermistors are classified by the way their resistance changes with the temperature. In Negative Temperature Coefficient (NTC) thermistors, resistance decreases with an increase in temperature. In Positive Temperature Coefficient (PTC) thermistors, resistance increases with an increase in temperature.
Thermistors are often used to regulate cold and heat in printers, cars, and AC systems. Sometimes, they are used for voltage regulation, time delays, and circuit protection. Particularly, in devices that deal with extreme temperatures.
Thermistors are analog sensors. Unlike digital temperature sensors like DHT, thermistors don't require a library to interface.