 #include <Wire.h> 
-#include <avr/dtostrf.h>
+#include <stdlib.h>
 
 volatile byte* Float1ArrayPtr;
 

}

void setup() {
 Wire.begin(2);
 Wire.onRequest(requestEvent); 
 Wire.onReceive(receiveEvent);
 //Serial.begin(9600);

  } else if(c == 3) { // rain
     // dataToSend = 5.6;
    dataToSend = getUnitRain();  
  } else if(c == 4) { // wind direction
    dataToSend = getDirection();
  } else if(c == 5) { // solar
    dataToSend = getSolar();
  } else if(c == 6) { // battery
    dataToSend = getBattery();
  }
  previousMillis = millis();
