 
   digitalWrite(LED_PIN, LOW);
 
-  // full loop takes ~10 seconds, so 30 loops = ~300 sec = ~5 min
+  // sleep 8 seconds * 30 loops = 240 sec = 4 min
   for (int i=0; i<30; i++)
     powerDown(WDTO_8S);
 }

  if (OneWire::crc8(data, 8) != data[8])
    return EBADTEMP;

  return (data[1] << 8 | data[0]) / 16.0;
}

void loop(void)

 * License: MIT, see file LICENSE
 *
 */
#include <avr/sleep.h>
#include <avr/wdt.h>

#include "OneWire.h"
#include "FineOffset.h"

#define TX_PIN 2
#define TEMP_PIN 0
#define LED_PIN 3

/* change this to be unique per device in your area */
#define DEVICE_ID 202

/* if you have calibrated the sensor, put the correction value here */
#define TEMP_CORRECTION -0.0000

#define EBADTEMP -999


OneWire ow(TEMP_PIN);
FineOffset tx(TX_PIN);
