Help with Arduino

Hello Arduino community, I've been learning from books about this exciting program. I am trying to do something relatively simple, but nor the tutorials nor the internet has helped. I have an arduino uno board. I have a DC motor as well as a pressure sensor. I know how to use them individually but I would like to be able to turn off the dc motor whenever some pressure is exceeded. How can I connect two devices to the board and make them work together?

You say you can make them work individually so please post the two individual programs and then we all have a good starting point.

...R