is this legal?

It depends on the HOA if you have one.
I parked around back with my small motor home after a trip, and ran the ac to air it out
For a few days. The HOA called code enforcement and said some people were livin in there.
That's asinine, what were they afraid to stop by and talk to Ya?