<New> how to convert char to int

XingY:
Hi ckho,
Thanks for your reply,
But my char value is from sensor reading, so i cannot define the value of leftmost digit or the rightmost digit.
What should i do?

Then JoeN's suggestion may be better.
Just use Serial.parseInt() to read the value as int from your sensor.