Connecting sensor to motor

Im new to arduino and i am mechanical engineering but i need arduino in my project to be able to activate my mechanism.

I have many questions and so confused about it.

Now i have to use two types of sensors.

Water and light sensor.

The light sensor is connected to two motors.
And the rain is just one motor.

Now for both the sensor they should activate the motor when they receive data, and when there is no data it should go back to normal.

They both should rotate an object to 90 degree and goes back to 0 degree.

Can someone please help me and tell what should i exactly do and consider.

Is there any papers i can refer that deals with my case.

Thank-you for giving me your time

Could you take a few moments to Learn How To Use The Forum.
It will help you get the best out of the forum in the future.

Posting tips.

  • Your OS and version can be valuable information, please include it along with extra security you are using.
  • Always list the version of the IDE you are using and the board version if applicable.
  • How to insert an image into your post. ( Thanks Robin2 )
  • Add your sketch where applicable but please use CODE TAGS ( </> )
  • Add a SCHEMATIC were needed even if it is hand drawn
  • Add working links to any specific hardware as needed (NOT links to similar items)
  • Remember that the people trying to help cannot see your problem so give as much information as you can

Bob.