(Being a specialist in off topic ) here are the links of the PTZ (pan tilt zoom) camera I have which are of the same type (Chinese manufacturer xiongmai technology) as @kevinGodell
My actual ptz cam : https://www.aliexpress.com/item/4000096231458.html?spm=a2g0s.9042311.0.0.27424c4d865FtM
My wish of purchase : https://www.aliexpress.com/item/4000260050022.html?spm=a2g0o.cart.0.0.4c503c00brYTBF&mp=1 you can choose with fix focus or 4x optical zoom and auto tracking (see video).
All use icsee app (my favorite) include human detection. My actual cam is fully controllable with Node red.