At its core, is an immersive survival game, and though exploration is important, a player's primary goal will need to be staying alive. One of the key components of survival in is building a base that can protect the player's character from the weather and provide a safe place to rest and recover. Campfires and bonfires are great ways to keep warm, and some kind of fire is required near or inside a shelter for players to be able to use their beds.
As soon as poor weather hits, players will lose their source of warmth and heat. Players can build a fire in their homes, as long as they have proper ventilation. While away from the base, this can get trickier, but players can use a similar strategy of building a protective awning to keep their fire going even in bad weather.
Valheim Guides: Beginner's Tips & Tricks For Survival
By far the easiest way to protect a fire in is to build it inside a house. This way, it can be used to cook, will keep the player character warm, will address the need for a bed to be near a fire, and will allow the player to monitor and refuel it easily. To build a fire inside, players will need to remove a piece of the floor using a hammer. They will then need to select the campfire in the Build menu which requires 5 Stone and 2 Wood materials to craft.
Next, players will need to build some sort of ventilation system. This is usually a decent-sized hole in the roof. Too small of a gap will often still cause the house to fill with smoke that can easily kill the character. Too wide of a hole will fail to protect the player from rain or cold while indoors and can still allow a shower or thunderstorm to put the fire out.
There are a few options for players to get creative about their ventilation system.
Read more on screenrant.com