yes it is compiled successfully
digitalRead(ir_sensor || ir_sonsor)
if (digitalRead(ir_sensor || ir_sonsor) == HIGH)
if (digitalRead(ir_sensor) == HIGH || digitalRead(ir_sonsor) == HIGH)
sir, it is now working but both are working together i want to operate from one sensor at a time..!!
I am using it in a car parking system and I am using 2 sensors at two sides of the servo motor as the entry and exit sensor in a parking lot .So if the car comes from one side then the respective sensor should sense and rotate the servo.