DroidCam will offer you the possibility to use your mobile phone as a webcam or microphone on your computer, using either WiFi or USB. It is a freeware phone webcam application that's well-designed.
Here are some screenshots to illustrate the features and user interface of this application: