Components used: arduino, arduinouno, ir-sensor, toggleswitch, dcmotor, npntransistor, resistor, diode