Raspberry Pi Zero 2w And Camera Module 3

Launch sudo nano /boot/config.txt

 

Set camera_auto_detect=0

dtoverlay=imx708

 

According wit this table:

Camera Module In /boot/firmware/config.txt

V1 camera (OV5647)

dtoverlay=ov5647

V2 camera (IMX219)

dtoverlay=imx219

HQ camera (IMX477)

dtoverlay=imx477

GS camera (IMX296)

dtoverlay=imx296

Camera Module 3 (IMX708)

dtoverlay=imx708

IMX290 and IMX327

dtoverlay=imx290,clock-frequency=74250000 or dtoverlay=imx290,clock-frequency=37125000 (both modules share the imx290 kernel driver; please refer to instructions from the module vendor for the correct frequency)

IMX378

dtoverlay=imx378

OV9281

dtoverlay=ov9281

 

Source Raspberry Pi Documentation - Camera software

Execute the following command to test your camera:

libcamera-hello