Awww I'm sorry it sucks to be prepared and get no one. We're in a big trick or treating neighborhood but on a side street and last year we only got like 5 visitors. This year we just took candy over to our neighbor on the more popular street and didn't hand any out at our house. One street over from our house and the entire sidewalk and street was mobbed with under-10's. I think it's highly neighborhood- and street-dependent.
Ask your neighbors where the good trick or treating spot is. It may be far away from you and people are just driving there instead of sticking around the neighborhood. Or it's possible if you're in a less walkable area that people might do more "trunk or treat" instead where they coordinate and go to a parking lot to do trick or treating.
Letting kids (and kids at heart) go wild with their imagination and dress up.
Meeting/seeing neighbors.
Eating candy.
I feel really sad for all the folks on lemmy having a bad/frustrating Halloween. I think it doesn't have to be that way, but it does definitely take neighborhood-level effort. We're really lucky to live in a big Halloween neighborhood in a walkable area. We saw all our favorite neighbors and met some new ones, and enjoyed all the creative decorations and costumes we saw while we were out.
But the best part of the night is always getting to see people light up when you recognize their costume. Every time I see a kid dressed as Batman and go "whoa there's Batman!" or compliment a princess on their beautiful dress, you can just see them stand up straighter or strike a pose and it's awesome to see everyone dressing up and enjoying themselves. I probably saw a dozen Marios tonight from age 2 to age 20 and every single one of them was over the moon when I complimented their costume.