#include "stdio.h"
int value = 34567;

int main(void) {
  int i;
  char stringValue[8];
  snprintf(stringValue, 8,"%07d", value);

  printf("Sensor: %d\n", value);
  printf("strinValue: %s\n", stringValue);
  printf("Vals: ");
  for (i=0; i<7; i++) {
    printf("%d ", (int)(stringValue[i]-48));
  }
  printf("\n");

  return 0;
}