   return vmess / VOLTAGEDIVIDER;
 }
 
+float get_temp(void) {
+  float temp;
+  draw_therm(THERM_X0, THERM_Y0);
+  sensors.requestTemperatures(); // Send the command to get temperatures
+  temp=sensors.getTempCByIndex(0);
+  draw_temp(temp);
+  wipe_therm(THERM_X0, THERM_Y0);
+  return temp;
+}
+
 void print_field(float val, int field) {
   int x0, y0;
   switch (field) {
     case 1: x0=0; y0=25; break;
-    case 2: x0=41; y0=25; break;
+    case 2: x0=42; y0=25; break;
     case 3: x0=0; y0=36; break;
-    case 4: x0=41; y0=36; break;
-  }
-  for (int i=x0; i < x0+43; i++) {
+    case 4: x0=42; y0=36; break;
+  }
+  for (int i=x0; i < x0+42; i++) {
     for (int j=y0; j< y0+12; j++) {
       myGLCD.clrPixel(i,j);
     }
   }
-  myGLCD.drawRect(x0,y0,x0+42,y0+11);
+  myGLCD.drawRect(x0,y0,x0+41,y0+11);
   myGLCD.setFont(SmallFont);
   if ( val > 100 ) {
     if (val+0.5 > 1000) { 

  }
  digitalWrite(STATUSLED,STATUSLED_OFF); 
  network_busy=true;
  draw_antenna(74,10);
}

void draw_temp(float t) {

      case 101:  
      // battery voltage
        payload.value=read_battery_voltage();
        draw_battery(BATT_X0,BATT_Y0,payload.value);
        txheader.type=101;
        network.write(txheader,&payload,sizeof(payload));  
        break;      
