how to convert char to int in arduino code example Example: arduino char to int value = atoi(inChar); value = int(inChar); value = (int)inChar;