void setup() {
Serial.begin(9600); //define the serial baud rate
// Initialize the I2C bus (BH1750 library doesn't do this automatically)
Wire.begin();
lightMeter.begin();
lr_servo.attach(lr_servopin); // set the control pin of servo
ud_servo.attach(ud_servopin); // set the control pin of servo
pinMode(l_state, INPUT); //set the mode of pin
pinMode(r_state, INPUT);
pinMode(u_state, INPUT);
pinMode(d_state, INPUT);
pinMode(interruptPin, INPUT_PULLUP); //the button pin is set to
input pull-up mode
attachInterrupt(digitalPinToInterrupt(interruptPin),
adjust_resolution, FALLING); //External interrupt touch type is falling
edge; adjust_resolution is interrupt service function ISR
lcd.init(); // initialize the LCD
lcd.backlight(); //set LCD backlight