   }
 }
 
-/**
- * Reads the voltage from TMP36 sensor.
- * Returns the temperature in degrees Celsius.
- */
-float readTemperature() {
-  float voltage = (analogRead(insideTempPin) / 1024.0) * 5.0;
-  return (voltage - 0.5) * 100;
-}
-
 // The code below is from https://www.allaboutcircuits.com/projects/measuring-temperature-with-an-ntc-thermistor/
 /**
 This function reads the analog pin as shown below. Converts voltage signal

     better at algebra. And if not, just use what is shown here and take it
     for granted or input the formula directly from the article, exactly
     as it is shown. Either way will work! */
  tKelvin = (BETA * ROOM_TEMP) /
            (BETA + (ROOM_TEMP * log(rThermistor / RESISTOR_ROOM_TEMP)));

  /* I will use the units of Celsius to indicate temperature. I did this
     just so I can see the typical room temperature, which is 25 degrees

                                    |
                               Analog Pin
*/
double readThermistor(int thermistorPin, double balanceResistor, double beta) {
  // variables that live in this function
  double rThermistor = 0;            // Holds thermistor resistance value
  double tKelvin     = 0;            // Holds calculated temperature
