 #ifndef __PULSE_OX__
 #define __PULSE_OX__ 1
-
-
 
 float InputPin = A0; // Analog input pin from output of op amp
 float sensorVoltage = 0;

//Timer call_connect_timer(20000, call_connect);

void setup() {
Serial.begin(9600);
pinMode(LEDRed, OUTPUT);
pinMode(LEDIR, OUTPUT);
pinMode(InputPin, INPUT);
red_state = false;
ir_state  = true;
state_diag  = true; // Init state
change_led_timer.start();
}

void loop() {
    // red_led_on and start red_timer

int LEDIR=D1;
bool red_state;
bool ir_state;
bool state_diag;

#include<math.h>

