 //power and energy
 double power0, averagedPower0, power1, averagedPower1;
 
+// JeeLib required for RFM12B
+#include <JeeLib.h>
+
+// mesurement structure for JeeNode micro temperature node
+typedef struct
+{
+    float Vcc;  // Supply voltage
+    float T;    // Temperature reading
+} measurementStruc;
+
+measurementStruc measurement;
+
+
 void setup()
 {
 

/*
Arduino Yun - Power and temperature measurement

1) Interrupt-driven light pulse detection with ppwh pulses per Wh
  - IRQ 4 = Yun pin 7 > P_prod

        dataString += String(averagedPower0); dataString += ",";
        dataString += String(averagedPower1); dataString += ",";
        dataString += String(sensors.getTempCByIndex(0));
        dataString += String(measurement.Vcc);
        dataString += String(measurement.T);

        // open the file. note that only one file can be open at a time,
        // so you have to close this one before opening another.
