How to write Processing code of LM35 temperture sensor

HOW TO WRITE PROCESSING CODE OF FOLLOWING LM35 temperture sensor code.

float temp;
int tempPin = 0;

void setup()
{
Serial.begin(9600);
}

void loop()
{
temp = analogRead(tempPin);
temp = temp * 0.48828125;
Serial.print("TEMPRATURE = ");
Serial.print(temp);
Serial.print("*C");
Serial.println();
delay(1000);
}
Tagged:

Answers

Sign In or Register to comment.