sensor value Serial.println


hi.
i want print different values if sensor value more or less given number not seem work good.
the code 2 if statements check if values more or less 800 printing first statement , not care real value is.

what missing?

if(sensorvalue < '800')
     serial.println("less 800");

if(sensorvalue > '800')
     serial.println("more 800");


you missing keys

code: [select]

if(sensorvalue < '800')
{
     serial.println("less 800");
}

if(sensorvalue > '800')
{
     serial.println("more 800");
}



Arduino Forum > Using Arduino > Sensors > sensor value Serial.println


arduino

Comments

Popular posts from this blog

Authentication error while password reset - Raspberry Pi Forums

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums