Temperature Sensor

#define debugSerial SerialUSB

void setup() {
  // Configure the button as an input and enable the internal pull-up resistor
  
}

void loop() {
  //10mV per C, 0C is 500mV
  float mVolts = (float)analogRead(TEMP_SENSOR) * 3300.0 / 1023.0;
  float temp = (mVolts - 500.0) / 10.0;

  debugSerial.print(temp);
  debugSerial.println(" C");

  delay(1000);
}