Break your idea into each, separate, part of your project and get them working, individually. Only put them all together when you have all individual components working.
What do you think of when you write "infrared ray"? Who would know if this happened or not?
There are tutorials for all of those basic components. Search for "arduino something" to find what people have posted about using "something" with Arduino.