   RGB.color(0,0,0);
 
   // get solar and battery voltage
-  solarVoltage = analogRead(A1);
-  batteryVoltage = analogRead(A0);
+  solarVoltage = (float)analogRead(A1) / 2048.0 * 3.3;
+  batteryVoltage = (float)analogRead(A0) / 2048.0 * 3.3;
 
   // early exit - battery voltage is too LOW
-  if (batteryVoltage < 2200)
+  if (batteryVoltage < 3.55)
   {
-    // if at night time wait 20 minutes before trying again
-    if (solarVoltage < 2250)
+    // if solar voltage not sufficient to charge battery wait 20 minutes
+    if (solarVoltage < 3.72)
     {
       System.sleep(SLEEP_MODE_DEEP, 60*20);
     }

  }

  daytime = true;
  if (solarVoltage < 1000)
    daytime = false;

  delay(100);

        request.port = 80;
        request.path = URL;

        request.body =  "field1=" + String((int)temperature, DEC)
                         + "&" + "field2=" + String((int)humidity, DEC) // Do not omit
                         + "&" + "field3=" + String(uv, DEC) // the &
                         + "&" + "field4=" + String(ir, DEC)
                         + "&" + "field5=" + String(visible, DEC)
                         + "&" + "field6=" + String(solarVoltage, 2)
                         + "&" + "field7=" + String(batteryVoltage, 2);
        http.post(request, response, headers);
        currentState = STATE_WIFI_COMPLETE;
      }
