Help needed : 2 Servo Motor, LCD, LDR sensor and limit switch

how to control 2 servo motor with diffrent task?

Hi, post your sketch so far, and the error messages. Use code tags so it looks like......this

Paul

#include <Servo.h> // servo library
#include <LiquidCrystal.h> // LCD library
#define irLEDpin 8
#define irSensorPin 7
#define GO 1 //switch to trigger servo motor

LiquidCrystal lcd(12,11,5,4,3,2);
Servo servoFood;
Servo servoBait;

int LDRPin = 0;
int LDRvalue = 0;
int light_sensitivity = 500;
int ledPin = 7;
const int switchPin = 4;
int switchPinState = 0; 
const int feedfreqperday = 2; //the fish eats twice a day
const int numberofdays = 5; //for 5 days
const int firstfeedhour = 1;
int currenthour = 0; 
int firstminutevalue = 0;
int servoposition = 0;
int feeddone = 0;
int runninghour = 0;




void setup ()
{
  pinMode(ledPin, OUTPUT);
  pinMode(switchPin, INPUT);
  servoFood.attach(9);
  servoBait.attach(10);
  lcd.begin(16,2);
  lcd.setCursor(0,0);
  lcd.print("Freq:2 Days:5"); // Print the stated 
  lcd.setCursor(0,1); 
lcd.print("1st feed hour:"); // Print the stated 
lcd.setCursor (0, 2); // Choose column 0, row 2 
}
void loop ()
int LDR = 0;
{

LDRValue = analogRead(LDR);
  
if LDRVAlue < light_sensitivity;
  {
    digitalWrite(7,HIGH);
  }
  else
  {
    digitalWrite(7,LOW);
  }
}
{
 servoFood.writeMicroseconds(1300); //servo rotates clockwise to dispense food
  delay(3000); //delay for 3sec
  servoBait.writeMicroseconds(1300); // survo turns to let bait go into water
  delay(120000);
  servoFood.writeMicroseconds(1700); 
  servoBait.writeMicroseconds(1700);
}

this is where i'm currently stuck at.
the bait is suppose to be timed for 2 minutes.
but how do i make it to repeat for next 5 days?