Using a sensor to activate a 3v motor and and speakers

I am new to arduino boards and very amateur, so please bare with me!

So basically i wanted to have a sensor that will turn on the motor (3v) and speakers as long as the sensor stays activated.

What type of sensor would i use? How would i connect it all? What would the code be that i have use? What would be the best power input for the whole thing to work?

Sorry if i am a bit vague!

What kind of sensor do you want?

One common one is a PIR module like this:

You can find them other places and ranging in price from a couple of bucks to $15. Shop around.

The way they work is to send a signal to the Arduino when the sensor "sees" something. The Arduino would read the signal from the sensor and go do whatever you would like it to do (turn on motors, play sound in a speaker),

Don't know what level of experience you have, but this is a project that is likely within reach. Start small and work up. If you can make the LED in the BLINK sketch work, then try making the LED come to life based on PIR sensor input.

What type of sensor would i use? How would i connect it all? What would the code be that i have use? What would be the best power input for the whole thing to work?

Selection of a sensor here completely depends on what sort of input you are envisioning and how you want the human beings to interact with the gadget.

How would you connect means you are really starting in electronics, as such I will suggest connecting an LED with a Arduino first and trying a bit of blinky stuff beofre you lookonto somehting more serious.

rest will talk about when you would have cleared all the basic know-how that is needed!