Hola, quiero modificar un Reloj con indicador de Temperatura con el modulo rtc ds3231 y quiero añadirle en el pin A0 una resistencia NTC para que me muestre la temperatura del termistor .Me pueden ayudar .
pin A0 - thermistor to VCC, A0 via R=10k to GND
#define THERMISTOR_PIN A0
/*
float readTherm()
{
float pad = 9960; // balance/pad resistor value - 10k
float thermr = 10000; // thermistor nominal resistance - 10k
long resist = pad*((1024.0 / analogRead(THERMISTOR_PIN)) - 1);
float temp = log(resist);
temp = 1 / (0.001129148 + (0.000234125 * temp) + (0.0000000876741 * temp * temp * temp));
temp -= 273.15;
return temp;
}*/
esto esta bien .