         
         // INT0 pin LOW = sleep
         if (!digitalRead(PIN_WAKEUP)) {
-          goToSleep(SLEEP_FLAG_DARK);
+          //goToSleep(SLEEP_FLAG_DARK);
           //TODO connect LDR to INT0
         }
         

void goToSleep(byte flag)
{
  sleep_flag = flag;
  
  // Power down the periferals
  digitalWrite(PIN_PERIF_POWER, HIGH);

    // Transmit after interval
    if (now - tx_last >= tx_interval) {
        tx_last = now;
                
        byte wake_up = digitalRead(PIN_WAKEUP);
                
        // Send a transmission
        // int = 5 bytes in transmision string
        // long int = 10 bytes in transmision string
        // byte = 3 bytes in transmision string
        char msg[25]; // string to send
        sprintf(msg, "S,%d,%d,%u,%u,%lu", msgId, wake_up, ldr_val_left, ldr_val_right, readVcc());
        Serial.println(msg); 
        vw_send((uint8_t *)msg, strlen(msg));
        vw_wait_tx(); // Wait until the whole message is gone
        ++msgId;
