How to display a sensor input value on lcd display?

Helo,

Can any let me know how I can display a sensor value on LCD, im using the LiquidCrystal Library. Should I use lcd.write(data) syntax or lcd.print(data, BASE) syntax.

Basically I have a variable "temp" which stores the temperature from the sensor. I want the value stored in temp to be displayed. When I put lcd.print(temp "Degrees", DEC); it gives me error. So whats the correct syntax in this case. Thanks.

.print() only takes 1 or 2 arguments:

.print(string);
.print(value, BASE);

To print one of each you would call .print() twice:

lcd.print(temp, DEC);
lcd.print(" Degrees");