Wiring Pi requires that you install git, and then compile the code, therefore you must first install git. To do this from the command line, run the following commands. First update the pi:
sudo apt-get update && sudo apt-get upgrade
Once this is finished, now install git:
sudo apt-get install git git-core
Then use git to download wiringpi code:
it clone git://git.drogon.net/wiringPi cd wiringPi ./build
Once this is done you can now run the gpio command and verify wiring pi is installed.
Turn off the device to plug in your sensor
sudo shutdown