- Web camera (Logitech C170). In some cases an USB powered hub should be used because the camera uses more power than the Pi.
- Update your Pi:
Install Motion application. It will get the web cam output and will send it to the built in web server:
webcam_port=8081 (default setting)
you could play with the other parameters too.