Step 1. Add a Camera
To open the connector, hold the ends with the index finger and thumb and gently lift. The plastic parts don’t separate; they open to allow a small gap for the cable.
Connect the cable to the camera (silver shiny side of the cable pointed to the front of camera
The camera connector socket on the Pi is in the middle near the the bottom edge of the board.
Step 2. Test the Camera Module
Go to Pi config tool (> sudo raspi-config)
Go to Interface Options
Legacy Camera Enable
Reboot (>reboot)
On the command-line window (Ctrl-Alt-t)
> cd /home/pi/Desktop
Take a test image
>raspistill -o test.jpg
Take a test video
>raspivid -o testvideo.h264 -t 5000