The project was a success, thank you very much...
I did some modification though, like adding an inverter to successfully include the sensor to the circuit; and the motor I used had its polarity controlled by a third wire, so I did some tweaking to the relay's output, but I couldn't have done it without you.
Really Pebe, you were a lifesaver