18 void loop() {
19 lcd.setCursor(0, 1);
20 lcd.print(millis()/1000);
21 int sensorVal = analogRead(sensorPin);
22 Serial.print("Sensor Value: ");
23 Serial.print(sensorVal);
24 float voltage = (sensorVal / 1024.0) * 5.0;
25 Serial.print(", Volts: ");
26 Serial.print(voltage);
27 Serial.print(", degrees C: ");
28 float temprature = (voltage - .5) * 100;
29 Serial.print(temprature);
30}
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Windows NT (unknown)), Board: "Arduino Uno"
ffsdfds.ino:1:23: error: invalid suffix "A" on integer constant