Display sensor data on a Nokia 3310?

char buffer[8];
sprintf(buffer, "%4d", temperature);