Help in small automation based on ir senaorand connectivity

I am a student working on a project. The project has a automation part in which i have planned to use ir obstacle sensor as an input signal. Following 3things to be operated on the detection of obstacle  infront of sensor.

1st : ON a solenoid valve( 240v )

2nd : ON a 15 amp 240v motor

3rd : OFF a 12v 5amp motor.

Pls tell me how can i  operate with what switch and circuit ,also what more i will be needing. Please need things in detail i m amature to this.

Thank you