 void check_for_5v_brownout(){
 	// This function is used to check for stable 5 Volts
 	input_5v = analogRead(pin_5v_brownout);
-	if(flag_5v_brownout_detected == 1){
-		// CHANGE LATER (to ensure actual brownout and not a minor fluctuation)
-		if(input_5v<threshold_5v){
-			turn_on_backup_battery();
-			flag_5v_brownout_detected = 1;
-		}
-	}
-	else{
-		if(input_5v>threshold_5v){
-			turn_off_backup_battery();
-			flag_5v_brownout_detected = 0;
-		}
-	}	
+	// if(flag_5v_brownout_detected == 0){
+	// 	// CHANGE LATER (to ensure actual brownout and not a minor fluctuation)
+
+	Serial.println(input_5v);
+	delay(500);
+
+	// if(input_5v<threshold_5v){
+	// 	turn_on_backup_battery();
+	// 	flag_5v_brownout_detected = 1;
+	// }
+	// else{
+	// 	// turn_off_backup_battery();
+	// 	flag_5v_brownout_detected = 0;
+	// }
+
+
+	// 	if(input_5v<threshold_5v){
+	// 		turn_on_backup_battery();
+	// 		flag_5v_brownout_detected = 1;
+	// 	}
+	// }
+	// else{
+	// 	if(input_5v>threshold_5v){
+	// 		turn_off_backup_battery();
+	// 		flag_5v_brownout_detected = 0;
+	// 	}
+	// }	
 }
 
 void check_both_ldr(){


//THRESHOLDS
int threshold_12v = 700; //#CHANGE
int threshold_5v = 700; //#CHANGE
int threshold_ldr = 512;

//Pin Definitions
char pin_5v_brownout = A3;
char pin_12v_brownout = A4;
char pin_ldr_1 = A1;
char pin_ldr_2 = A2;
int pin_relay_5v = 6;
int pin_relay_12v = 7;


	pinMode(pin_ldr_1,INPUT);
	pinMode(pin_ldr_2,INPUT);
    pinMode(debug_pin,OUTPUT);
    pinMode(pin_relay_5v,OUTPUT);
    pinMode(pin_relay_12v,OUTPUT);
        
	// Safety Initializations
	turn_off_dynamixel();
