     sei();
 }
 
-void setup () {
-  setPrescaler(4); // Reduce clock speed to 1 MHz
-  
+void setup () {  
   // LED
   pinMode(LED_PIN, OUTPUT);
   // button

  Sensor node
  Gather temperature and humidity and send them to a master node
*/

#include <DHT.h>
#include <SPI.h>
#include <RF24Network.h>

void loop() {
  // pump network
  network.update();
  setPrescaler(0);  // Reset clock speed to 8 MHz to get a reliable reading from the sensors
  
  // Reading temperature or humidity takes about 250 milliseconds!
  // Sensor readings may also be up to 2 seconds 'old' (its a very slow sensor)
  float t = dht.readTemperature();
  float h = dht.readHumidity();

  setPrescaler(3);  // Reduce clock speed back to 1 MHz while sending data and sleeping
  // TODO: Read the internal temperature sensor MCP9700 connected to A3?

  // check if returns are valid, if they are NaN (not a number) then something went wrong!
  if (isnan(t) || isnan(h)) {
      Serial.println("Failed to read from DHT");
      blink(2); 
  } 
  else {
    long voltage = readVcc();
