       case 4:
         readCap();
       break;
+      case 5:
+        readTempOld();
+      break;
     }
   }
   delay(500);

const int lightPin = A1;
const int greenLED = 8;
int command, tempVal, outputValue;
bool motorOn = false;
CapacitiveSensor capSensor = CapacitiveSensor(4, 2);


  Serial.println(map(tempVal, 0, 1023, -50, 450));
}

void readTempOld() {
  fTempVal = analogRead(tempPin);
  fTempVal = (fTempVal / 1024.0) * 5.0;
  fTempVal = (fTempVal - .5) * 100;
  Serial.print("Old temperature: ");
  Serial.println(fTempVal);
}

void readLight() {
  tempVal = analogRead(lightPin);
  Serial.print("Light: ");
