is this a puppy?
Get an old fashioned clock that make ticking noise. Put it nearby.
If you take pup out after 10 minutes of whining, pup learns to whine 11 minutes
they will sleep.
Agree with only taking a pup out when pup is quiet.
Now my big guys think their crates are their den and even though I never close the doors, they go there to sleep.