 } temp[4] = {{0,0}};
 
 unsigned long lastSample = 100;
-unsigned int powersave = 0;
+unsigned long lastRadioOn = 0; // records time the radio was last powered on
 unsigned long now = 0;
 unsigned long topOfHour = 0;
+boolean radioOn = false; // status of radio power
 unsigned long crc_errs = 0;
 
 // Arduino Setup and Loop

#include <OneWire.h>
#define num(array) (sizeof(array)/sizeof(array[0]))

// Ethernet Configuration

byte mac[] = { 0xEE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED   };

EthernetClient client(255);

unsigned long requests = 0;
unsigned long lastRequest = 0; // records the request number at time of the most recent radio powerup
unsigned byte radioPowerMode = 1; // indicates which power management algorith to use

// Sensor Configuration

