 #define SW_MOTOR 9
 #define WATER_FWD 10
 #define WATER_AFT 11
+
 #define BAT_LOW 26.5f
+#define TH_MOTOR_HIGH 10
+#define TH_MOTOR_LOW -40
+#define TH_WATER 10
 
 
 // Reference voltages (fine tuned):

    }


    // detect inputs
    status_water_fwd = digitalRead(WATER_FWD);
    status_water_aft = digitalRead(WATER_AFT);
    status_sw_motor = digitalRead(SW_MOTOR);

    // led indicator loop
    delta = millis() - time_leds;

    if(delta >= DELAY_LEDS) {

        if(status_sw_motor == LOW) {
            status_led_green = true;
        } else {
            status_led_green = !status_led_green;
        }

        if(status_water_fwd == HIGH && status_water_aft == HIGH) {
            status_led_red = true;    
        } else {
            status_led_red = !status_led_red;
        }

        if( bat0 > BAT_LOW ) {

int status_water_fwd = 0;
int status_water_aft = 0;
int status_sw_motor = 0;

boolean water_detected = false;
boolean motors_enabled = false;

boolean status_led_green = false;
boolean status_led_yellow = false;
