KY-028 brick is based on a thermistor (wiki). That is a temperature depending resistor. An example is the Negative Temperature Coefficient (NTC) resistor. Connect the A0 pin to an analogue input pin and it can be read with analogRead. This value must be recalculated into a temperature. There are 2 ways: 1=table 2=formula. Both can be found on Arduino playground. |