If your dog is sniffing your genital area, here is what it means

Dogs say hello to each other by sniffing each other’s behinds, which can be a bit strange when they decide to sniff around your private area. They do this because their sense of smell is way better than ours, with about 220 million scent receptors—50 times more than what humans have.
The area around the crotch is especially interesting to dogs because of special sweat glands that create a unique smell, making it a prime target for their sniffing.
To change this behavior, don’t yell at your dog, as it might confuse them. Instead, try to distract them with fun activities like snuffle mats, puzzle toys, or nosework games.
You can also teach your dog a more polite way to greet people, like sitting or giving a high-five, instead of sniffing. Using positive reinforcement will help encourage good behavior and make everyone feel more at ease.