   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);

int uv;
int ir;
int visible;
float solarVoltage;
float batteryVoltage;
bool daytime;

typedef enum {
