Make sure you have the Pi camera module by running the following command:
Now that you have everything set up, it's time to do an initial test with the camera. This should display what the camera sees on the display.
raspistill -t 0
Exit the camera test by pressing
CTRL + C