The official Raspberry Pi camera module works great with OctoPrint. The Raspberry Pi camera module is plug-and-play, so you won’t have to worry about any special setup configurations. It’s a low profile option, guaranteed to be compatible with the Raspberry Pi 1, 2, 3, and 4.
This module is designed for the Raspberry Pi and connects using the camera port on the Pi. It’s an 8-megapixel camera that can create images with a resolution of 3280 x 2464.
The whole unit is only 25mm x 23mm x 9mm (not including the cable). If you want a small camera with a good image that’s easy to mount, you may want to check out the Raspberry Pi Camera Module V2.