   {
     SD_vibrate = false;
     SD_B = now();
-    SD_BC = random (1, MAX_SD_PAUSE ) * 60; 
+    SD_BC = random (MIN_SD_PAUSE, MAX_SD_PAUSE ) * 60; 
     next_action = now() + SD_BC;
 
     lcd.setCursor(13,0);

// pin for mosfet
const int mosfetA = 16; //A1
const int mosfetB = 17; //A2
const int MAX_SD_PULSE = 20; //in seconds
const int MAX_SD_PAUSE = 7; //in minutes



  {
    SD_vibrate = true;
    SD_A = now();
    SD_AB = random (MIN_SD_PULSE, MAX_SD_PULSE);
    next_action = now() + SD_AB;

    lcd.setCursor(13,0);
