My project is to make a controlled servo motor rotation by using relays. A simple example would be like servo rotating left for relay1 ON and servo rotating right for relay2 ON. Is there a way in which I can give relay as an input to Arduino to control the servo ?
It’s not clear what you mean here. I’m assuming you want a relay connected to an input and an Arduino output driving the servo ??
If you have a (spare) contact on the relay then you can use that connected to a digital input with a pull up resistor.
Have a lot at the digital examples in the ide or the beginners guides on this site.
If you dont have a spare contact if look at using an a direct connection , perhaps with a voltage divider from whatever powers the relay .
Could really have a bit more information - it’s not clear if you saying the relay actually controls the servo directly or whether it’s an input