Hi,
I'm new in Arduino, and I wanted to make a sketch with a TMP35 thermometer and a 1602 LCD. Here is the sketch:
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2,);
int analog_pin = 1;
float temperature;
void setup () {
lcd.begin(16,2);
lcd.print("Temperature:");
}
void loop() {
temperature = analogRead(analog_pin);
temperature = 4.5*temperature*100.0/1024.0;
lcd.setCursor(0, 1);
lcd.print(temperature);
delay(1000);
}
This is the error code:
"sketch_jun19a.ino:2:38: error: expected primary-expression before ')' token"
Do you have any idea of what the problem could be?
Thank you.
Moritz