When it comes to criminal trespassing, a dwelling is considered a structure or portion of a structure whose use is to be a home or a designated sleeping place for its resident.
Dwellings are not limited to traditional homes, though, and can include:
Apartments
Houses
Attached garages
Condos
Trailer homes
Jail cells