   unsigned long startmilis = millis();
   adc_disable();
 
-  pinMode(statusPin, INPUT_PULLUP);
+  pinMode(statusPin, INPUT);
   statusPinStatus = digitalRead(statusPin);
 
   radio.begin();


void loop() {
  sleep();
  //statusPinStatus = digitalRead(statusPin);
  //if ( statusPinStatus == HIGH) {

    payload._salt++;
    unsigned long startmilis = millis();

    //payload.data1 =  10 ;
    payload.data1 = statusPinStatus * 10 ;
    payload.volt = readVcc();

    if ( payload.volt > 5000 || payload.volt <= 0 ) {
      return;
    }

    radio.powerUp();
    radio.write(&payload , sizeof(payload));
    radio.powerDown();

    unsigned long stopmilis = millis();

    payload.data2 = ( stopmilis - startmilis ) * 10 ;

    if ((millis() - startmilis) > 500) {
      sleep();
      return;
    }
    LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);
  //}
}

void sleep() {
  GIMSK |= _BV(PCIE);                     // Enable Pin Change Interrupts
  PCMSK |= _BV(PCINT3);                   // Use PB3 as interrupt pin
  set_sleep_mode(SLEEP_MODE_PWR_DOWN);    // replaces above statement

  sleep_enable();                         // Sets the Sleep Enable bit in the MCUCR Register (SE BIT)
  sei();                                  // Enable interrupts
  sleep_cpu();                            // sleep

  cli();                                  // Disable interrupts
  PCMSK &= ~_BV(PCINT3);                  // Turn off PB3 as interrupt pin
  sleep_disable();                        // Clear SE bit
  sei();                                  // Enable interrupts
}

ISR(PCINT0_vect) {
  statusPinStatus = digitalRead(statusPin);
}

int readVcc() {

  radio.setPayloadSize(11);
  radio.openWritingPipe(pipes[0]);
  radio.stopListening();
  radio.powerDown();

  unsigned long stopmilis = millis();
  payload.data2 = ( stopmilis - startmilis ) * 10 ;
