 DS18B20 sensor(&owi);
 
 // Powerdown on delay
-void powerdown(uint16_t ms)
+void powerdown_delay(uint32_t ms)
 {
   uint8_t mode = Power::set(SLEEP_MODE_PWR_DOWN);
   Power::all_disable();

{
  // Start watchdog
  Watchdog::begin();

  // Connect to temperature sensor, and set resolution and triggers
  pw.on();

  // Set LED according to temperature
  if (temp < low) {
    blue.on();
    delay(16);
    blue.off();
    delay(1000);
  }
  else if (temp > high) {
    red.on();
    delay(16);
    red.off();
    delay(1000);
  }
  else {
    green.on();
    delay(32);
    green.off();
    delay(2000);
  }
}
