New User on Arduino

Hey im not getting how i can use two motors which are controlled by photodiodes (light sensing robot), a ultasonic sensor, smoke detector module simultaniously so can someone provide me a program to do so...
1.) The motor should run when light falls on photodiodes.
2.) It should should anywere if an object comes near around 4 cm of ultrasonic sensor and turn on a buzzer.
3.) It should be able to detect smoke and stop the motors and play the buzzer.

Nobody is going to write your code for you for free (I'll do it for my standard rate - $50/hr - but you'd need to give much more detailed specs about the desired behavior and the hardware you're using).

If you have code that isn't working and you post it and your schematic, and describe what it's doing wrong, we will point you in the right direction. But nobody's going to just write the code for your project for you for free.