 int LEDIR=D1;
 bool red_state;
 bool ir_state;
-bool state_diag;
 
 #include<math.h>
 


//SYSTEM_MODE(MANUAL);

Timer change_led_timer(3000, change_led_type);
//Timer change_ir_timer(6000, change_ir_type);
//Timer ir_timer(6000, read_ir_and_calc);
//Timer call_connect_timer(20000, call_connect);

  Serial.println(bloodOx);
}

// Changes which LED to shine
void change_led_type()
{
    if(state_diag)
